Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

PropTypes are disabled for production builds and runtime only.

The only advantage for using them over TypeScript or Flow that I've seen is when consuming third party React components.

Otherwise the guarantees, feedback loop and terseness of static types are superior to PropTypes.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: