Migrate all components to use hooks
See original GitHub issueTwo things that need to do this:
- Migrate all components to hooks
- ESLint plugin:
yarn add eslint-plugin-react-hooks --dev. ESlint extend the defaults ("plugin:react-hooks/recommended"). Update the config in erb’s eslint config.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Migrating from class components to React hooks
There we have it! We have successfully migrated a class-based component to a functional component using hooks. It is worth noting that most ......
Read more >Hooks migration guide - Apollo GraphQL Docs
The new hooks API for Apollo Client is a simpler way to fetch data in your React app without the boilerplate of render...
Read more >Migrating React class components to use hooks - YouTube
Key moments. View all · Key moments · Description · Key moments. View all · Comments · Transcript ...
Read more >React Hooks Migration - Robin Wieruch
This tutorial shows a migration path on how to write React Class Components as React Function Components with React Hooks. Therefore we will...
Read more >Introducing Hooks - React
Crucially, Hooks work side-by-side with existing code so you can adopt them gradually. There is no rush to migrate to Hooks. We recommend...
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

@ivanjeremic They are supporting both, yes. I just want to echo a comment by a user in the HackerNews thread:
Not that you haven’t researched it yourself, I’m just thinking that these are subtle things the framework will need to understand for this template. Hooks in general can confuse beginners in general and are not transferable knowledge, but this is simply preference I just wanted to share in case you didn’t consider before.
It is the direction React moves, so I think it is smart to follow what the React team is doing.