Add support for React 16
See original GitHub issueI think it would be great if this plugin would be ready with supporting all the new things that React 16 has to offer.
Currently I’m not sure exactly what would need to to be added though. The only thing I could think of was the componentDidCatch
“lifecycle method” that got added. This should be added to a number of rules (prop-types
, no-unused-prop-types
, no-typos
) and should only be checked when using React 16.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:11 (7 by maintainers)
Top Results From Across the Web
React v16.0 – React Blog
Starting with React 16.2.0, we are adding support for a special fragment syntax to JSX that doesn't require keys. We've added support for ......
Read more >React 16 - Mobify DevCenter
Part 1: Upgrade your project to support React 15.6 ... On the React blog post it mentions that if your app runs 15.6...
Read more >Add React 16 Support · Issue #199 - GitHub
Feature Request react-transition-group provides support for react v^15.0.0. React 16 is expected to be released soon and can currently be ...
Read more >enzyme-adapter-react-16 | Yarn - Package Manager
Enzyme is a JavaScript Testing utility for React that makes it easier to test your React Components' output. You can also manipulate, traverse, ......
Read more >How to downgrade React version 17 to 16? - Stack Overflow
Search for the react and react-dom packages under dependencies (or devDependencies ) and replace their versions with 16.13.0 . Then run npm install...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Another thing we should test: since it’s now possible to return an array from
render()
, but the array does require keys at the moment. So we should check whether the current rulereact/no-array-index-key: Prevent using Array index in key props
works for this case…Edit: it works already. The rule was already smart enough to detect arrays!
Another one I just stumbled across:
react/sort-comp
should recognizecomponentDidCatch
as alifecycle
method in theorder
property.