Nice article. I think using PropType validation is very nice if you aren’t using TypeScript. It helped prevent lots of unexpected behavior and errors.

I would add that if the component structure become more complex, then using some flux implementation like Redux or MobX or the Context API to pass data around would be better than passing around lots of props.

Written by

Web developer. Subscribe to my email list now at http://jauyeung.net/subscribe/. Email me at hohanga@gmail.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store