Browse Source

Tweaks

main
Dan Abramov 6 years ago
parent
commit
e5a987bc60
  1. 3
      content/blog/2019-02-04-react-v16.8.0.md

3
content/blog/2019-02-04-react-v16.8.0.md

@ -36,8 +36,6 @@ Note that **to enable Hooks, all React packages need to be 16.8.0 or higher**. H
**React Native will support Hooks in the [0.60 release](https://github.com/react-native-community/react-native-releases/issues/79#issuecomment-457735214).** **React Native will support Hooks in the [0.60 release](https://github.com/react-native-community/react-native-releases/issues/79#issuecomment-457735214).**
The latest TypeScript and Flow definitions for React support Hooks. The Flow definitions will be updated to the final `useReducer` API in the next Flow release.
## Tooling Support ## Tooling Support
React Hooks are now supported by React DevTools. They are also supported in the latest Flow and TypeScript definitions for React. We strongly recommend enabling a new [lint rule called `eslint-plugin-react-hooks`](https://www.npmjs.com/package/eslint-plugin-react-hooks) to enforce best practices with Hooks. It will soon be included into Create React App by default. React Hooks are now supported by React DevTools. They are also supported in the latest Flow and TypeScript definitions for React. We strongly recommend enabling a new [lint rule called `eslint-plugin-react-hooks`](https://www.npmjs.com/package/eslint-plugin-react-hooks) to enforce best practices with Hooks. It will soon be included into Create React App by default.
@ -84,6 +82,7 @@ Refer to the documentation for [detailed installation instructions](/docs/instal
### ESLint Plugin for React Hooks ### ESLint Plugin for React Hooks
>Note >Note
>
>As mentioned above, we strongly recommend using the `eslint-plugin-react-hooks` lint rule. >As mentioned above, we strongly recommend using the `eslint-plugin-react-hooks` lint rule.
> >
>If you're using Create React App, instead of manually configuring ESLint you can wait for the next version of `react-scripts` which will come out shortly and will include this rule. >If you're using Create React App, instead of manually configuring ESLint you can wait for the next version of `react-scripts` which will come out shortly and will include this rule.

Loading…
Cancel
Save