Composing Components
One your create React components, you can refer them in other components too. That way you can divide a component when it gets complex and make smaller components.
You can have a complete form component with smaller components like buttons, textboxes, etc.
For e.g. here’s one component referring another component.
Extracting Components
As I mentioned, if you think your React component is getting too big and complex that it’s hard to keep track of everything then you can just divide it in smaller components for simplicity.
Take a look at this example:
The same example with extracted Avatar component:
components examples functions