I have a general question about Flow.
I currently use React's prop-types library to define component prop types. These checks are stripped out of production code, so it's still possible for data from external sources to cause a script to crash.
<Foo bar={i} />
Example: Let's say I have a component, Foo, that has a property of bar with a prop type of number. While I'm coding, I'll be notified if I try to accidently pass a string to Foo's bar prop. However, once the code goes live, that sanity check is removed.
Does Flow stay in production code? By that I mean, continuing the above example, if I used Flow, would Flow throw an error at runtime if someone tried to pass in a string to Foo's bar property?
any, Flow would still require you to validate the input types. - loganfsmyth