DEV Community

Discussion on: 7 code smells in your React components

blocka profile image
Avi Block

Looking at the props of this component we can see that all of them are related to what the component does, but there's still room to improve this by moving some of the components responsibility to its children instead:

but now this component is no longer reusable, and the consumer of it has to make sure it's set up correctly.