DEV Community

Discussion on: React, when to use propTypes what are the best practices?

stefandorresteijn profile image
Stefan Dorresteijn

I think it's nice not to break an app, but when a developer is misusing a component, the app should break. Otherwise it can be difficult to debug why the app doesn't work as expected. Check your values before rendering the component, then the component should be very dumb and just require certain props.