One of the most used ways to check the “type” of a property which is passed to a React component is
prop-types. The main problem is that all the
type checking is done on run-time, and not statically.
This article will explain how to go from type checking with
prop-types to static type checking
with Flow in React.