Fix tables for the hooks list

This commit is contained in:
Rico Sta. Cruz 2019-12-18 13:34:15 +11:00 committed by GitHub
parent 303813e74a
commit b54a975c74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -435,6 +435,8 @@ Also see: [Hooks FAQ](https://reactjs.org/docs/hooks-faq.html)
#### Basic Hooks
| Hook | Description |
| ---------------------------- | ----------------------------------------- |
| `useState`_(initialState)_ | |
| `useEffect`_(() => { ... })_ | |
| `useContext`_(MyContext)_ | value returned from `React.createContext` |
@ -443,6 +445,8 @@ Full details: [Basic Hooks](https://reactjs.org/docs/hooks-reference.html#basic-
#### Additional Hooks
| Hook | Description |
| -------------------------------------------- | ---------------------------------------------------------------------------- |
| `useReducer`_(reducer, initialArg, init)_ | |
| `useCallback`_(() => { ... })_ | |
| `useMemo`_(() => { ... })_ | |