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

I'm really glad proptypes are not used anymore, ts is simply better. It's more flexible, gives stronger guarantees in some cases (PropTypes.func does zero checks for signature, for example), better support in editors, better integration with other libraries, allows typing hooks/context. If you need runtime checks, use io-ts or runtypes.


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

Search: