React gives you the power of composing components into each other with its children prop. You should make use of it rather than passing "configurational" props to one complex component. That way you keep your components lightweight and give yourself lots of flexibility for adjustments. Read more about it.
git clone [email protected]:the-road-to-learn-react/react-composability-over-configurability.git
- cd react-composability-over-configurability
- npm install
- npm start
- visit
http://localhost:3000/