question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The facebook team mentioned they aren’t actively developing propTypes anymore, and are switching everything over to Flow: https://github.com/facebook/react/issues/1833#issuecomment-148297807

I’ve played around with Flow a bit, but it’s not quite there yet (haste on CI?) and, while I think we should switch to it eventually, I think we should do it after it has matured a bit. (v4?)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

41reactions
nicksrandallcommented, Apr 8, 2017

Now that React team has officially began the deprecation process for PropTypes in 15.5, now is probably a good time to make a decision on this. My vote is for adding support for Flow with a clear opt out documentation.

13reactions
vikrantpogulacommented, May 18, 2016

@mxstbr my two cents on this discussion. I think you can also consider TypeScript as an alternative (choice during setup ?), since RBP already uses webpack + ES6 imports it may not be very hard to configure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flow: A Static Type Checker for JavaScript
Using data flow analysis, Flow infers types and tracks data as it moves through your code. You don't need to fully annotate your...
Read more >
facebook/flow: Adds static typing to JavaScript to ... - GitHub
Flow. CircleCI Follow @flowtype MIT License GitHub contributors GitHub top language Join Discord Chat. Flow is a static typechecker for JavaScript.
Read more >
Flow Type Cheat Sheet - SaltyCrane
Flow Type Cheat Sheet. Flow is a static type checker for JavaScript. This is a list of Flow types generated from the source...
Read more >
Overview of the different types of flows - Microsoft Learn
In this article. Cloud flows; Desktop flows; Business process flows; More info. Power Automate is a service that you can use to automate ......
Read more >
Typescript vs Flow. Which static type checker should you use ...
The type definition syntax of Flow and TypeScript is very similar. They both support JavaScript primitive types and derived types for type ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found