Fix tables for the hooks list
This commit is contained in:
parent
303813e74a
commit
b54a975c74
4
react.md
4
react.md
|
@ -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`_(() => { ... })_ | |
|
||||
|
|
Loading…
Reference in New Issue