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.

Any news on when React Hooks get added to create-react-app?

See original GitHub issue

Hi guys,

since React Hooks are officially released I wanted to know if there are any plans when hooks will be present in the awesome create-react-app repo?

I’m just a little self thaught hobby developer that just works with create-react-app and I would love to use hooks. Can I manually update it after I created a project with create-react-app ?

Thank you so much guys for create-react-app you are doing an excellent job!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
rovansteencommented, Feb 6, 2019

You can update the React version independently of create-react-app, so you can upgrade to 16.8.0 right now and enjoy hooks! 🎣

1reaction
SunHuaweicommented, Feb 12, 2019

It’s actually easy to upgrade to the newest version of react, and easy to integrate eslint-plugin-react-hooks. I done that in just few minutes on codesandbox.io. Click here to see it. You can also download the whole project to your local by clicking the download button.

For someone who are curious what I’ve done, I just list the steps here

  1. Create a React project on codesandbox.io
  2. Edit package.json to add "eslint-plugin-react-hooks": "1.0.1", in "dependencies", upgrade the versions of react and react-dom, if you’d like
  3. Create .eslintrc.json file on the root folder with these code
{
  "plugins": ["react-hooks"],
  "rules": {
    "react-hooks/rules-of-hooks": "error"
  }
}

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introducing Hooks - React
Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class. This new...
Read more >
Building Your Own Hooks - React
Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class. Building your...
Read more >
React v16.8: The One With Hooks
Hooks let you use state and other React features without writing a class. You can also build your own Hooks to share reusable...
Read more >
Rules of Hooks - React
Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class.
Read more >
Using the Effect Hook - React
Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class. The Effect...
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