-
-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any news on when React Hooks get added to create-react-app? #6351
Comments
You can update the React version independently of |
Make sure react-dom is also upgraded. |
I see there is a PR running for hooks support, but would it be ok to add the hook plugin to the eslint config even before that is merged? |
Hi, any news about eslint-plugin-react-hooks ? or about release a new version of create-react-app that includes hooks ? or we need to update that manually ? |
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
{
"plugins": ["react-hooks"],
"rules": {
"react-hooks/rules-of-hooks": "error"
}
}
|
@SunHuawei - that eslint file isn't used by create-react-app's linting process. still ok to have one for your IDE integration, but it doesn't have an effect outside of that. |
For ESLint rule, please track #5602. |
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!The text was updated successfully, but these errors were encountered: