๐ฅ๐ฒ๐ฎ๐ฐ๐ ๐๐ผ๐บ๐ฝ๐ผ๐ป๐ฒ๐ป๐๐: ๐ง๐ต๐ฒ ๐๐๐ถ๐น๐ฑ๐ถ๐ป๐ด ๐๐น๐ผ๐ฐ๐ธ๐
React components are pieces of your user interface. They let you build your app in small parts.
Keep your components small. Keep them focused. Split a component if it does too much.
Example:
- A UserCard should not fetch data.
- A UserCard should not handle form submissions.
One component does one job. Start small. Stay consistent. Build complex UIs.
Source: https://dev.to/kahenda/react-components-the-building-blocks-you-need-to-know-215k