DEV Community

Cover image for React Prot-Types and Errors
juanpumpkinpie
juanpumpkinpie

Posted on

React Prot-Types and Errors

Guys, is important to add the prop-types for the apps you are developing to avoid problems in the UI render, because if the app start to growing up, the errors also can do it.
Here I attach sample,

https://es.reactjs.org/docs/typechecking-with-proptypes.html

Besides, it is important handle the errors, and to know what is happening back the app in the modeling, structure and behave: https://es.reactjs.org/blog/2017/07/26/error-handling-in-react-16.html

componentDidCatch is more important than a simple Try,Catch, check the documentation and improve your code!

Top comments (0)