3 ms·
Not specific to your project, but I suspect you’ll know the answer: If React code contains sufficient information to infer type, why is a separate type system n
by scoot 9y ago
Not specific to your project, but I suspect you’ll know the answer: If React code contains sufficient information to infer type, why is a separate type system needed? (Or why can’t the same inference by made at compile time, rather than scattering the code with type definitions and external type files?)
- msoad 9y agoBecause propTypes are leaking into runtime. ASFAIK Flow originally wanted to use propTypes but decided to use compile time only type annotations