loading...

re: React, when to use propTypes what are the best practices? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hi Stefan! Sorry to necro this old reply :-) I have a question about using isRequired. If you have a prop that is required, do you leave it at th...
 

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.

code of conduct - report abuse