mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 12:13:11 +00:00
Update hooks-faq.md with info for React Native (#1875)
For the FAQ question "Which versions of React include Hooks?", the current version of React Native (which supports Hooks) is now listed, along with a link to the blog post for that release.
This commit is contained in:
committed by
Dan Abramov
parent
972d835775
commit
71ec859df2
@@ -64,13 +64,14 @@ This page answers some of the frequently asked questions about [Hooks](/docs/hoo
|
||||
Starting with 16.8.0, React includes a stable implementation of React Hooks for:
|
||||
|
||||
* React DOM
|
||||
* React Native
|
||||
* React DOM Server
|
||||
* React Test Renderer
|
||||
* React Shallow Renderer
|
||||
|
||||
Note that **to enable Hooks, all React packages need to be 16.8.0 or higher**. Hooks won't work if you forget to update, for example, React DOM.
|
||||
|
||||
React Native 0.59 and above support Hooks.
|
||||
[React Native 0.59](https://facebook.github.io/react-native/blog/2019/03/12/releasing-react-native-059) and above support Hooks.
|
||||
|
||||
### Do I need to rewrite all my class components? {#do-i-need-to-rewrite-all-my-class-components}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user