I will now write a simple react component that inherits from react.component. As an intern, I see that colleagues in the company will adopt a step-by-step inheritance approach when completing a piece of content, rather than writing a straightforward component as I do.
I"d like to ask all of you. How can we write such a reusable component? what is the idea? What books should I read
on another occasion, a colleague of list, who can delete or add is encapsulated a class and put the actions of adding and deleting in it, but I just added a method directly to the components of react, asking him where to learn this kind of solution