Ask EJS: Can flow/typescript fully replace React propTypes?
▼1 up and 0 down, posted by
1 up and 0 down, posted by
I'm wondering if it's possible to drop the PropTypes. So far looks like yes but I'm concerned for any edge case I cannot foresee right now. In this Twitter thread there some interesting thoughts (https://twitter.com/sospedra_r/status/1025318636175679488) For example, when you consume directly from an API. Your static typing will not complain on build time but it might fail at runtime if the API payload contract changes. What are your ideas and thoughts?