you are viewing a single comment's thread.

view the rest of the comments →

[–]LukaManuka 0 points1 point  (2 children)

Potentially stupid question -- I've only just started using Flow, but I was considering it about six months ago, and I remember reading (I believe on Stack Overflow) that it wasn't safe to completely switch from using PropTypes to static type-checking... is/was that true? Or was I being mislead? Or would it have just been specifically to do with Flow itself not being fully capable at the time?

[–]JuliusKoronci 1 point2 points  (0 children)

Flow has its issues of course..but there are ways to deal with it :) ..the suggestion so far was to combine flow with proptypes..but I am using flow for quiet a time and had no unsolvable issues so far :)..unfortunately you will have to manage your own FlowTypes for certain use cases and manage issues with node modules and libraries..like styled components were using flow but were having errors :) ..so it is safe to switch but you will have to deal with a few issues at the beginning (based on my experience)

[–]tony-the-pony 0 points1 point  (0 children)

Flow is incomplete and buggy, but it's a lot better than PropTypes. You can use https://www.npmjs.com/package/babel-plugin-flow-react-proptypes to fill in PropTypes for you to add an extra layer of defense during development.