Hacker News new | past | comments | ask | show | jobs | submit login

> React integrates really well with flow

No. The flow types around React are really poor. There are many things flow can't represent. The types are 'private' (all types in flow with a dollar in the name are private, not publicly supported. eg. React$Element).

The implementation of React$Element is hardwired into flow. If you have to include specific support for libraries it tells a lot about the expressiveness of the underlying type system, doesn't it?

There is no way to represent a react node, fragment etc. Properly typing children of a react component is impossible.




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

Search: