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
|
#### Basic Hooks
|
||||||
|
|
||||||
|
| Hook | Description |
|
||||||
|
| ---------------------------- | ----------------------------------------- |
|
||||||
| `useState`_(initialState)_ | |
|
| `useState`_(initialState)_ | |
|
||||||
| `useEffect`_(() => { ... })_ | |
|
| `useEffect`_(() => { ... })_ | |
|
||||||
| `useContext`_(MyContext)_ | value returned from `React.createContext` |
|
| `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
|
#### Additional Hooks
|
||||||
|
|
||||||
|
| Hook | Description |
|
||||||
|
| -------------------------------------------- | ---------------------------------------------------------------------------- |
|
||||||
| `useReducer`_(reducer, initialArg, init)_ | |
|
| `useReducer`_(reducer, initialArg, init)_ | |
|
||||||
| `useCallback`_(() => { ... })_ | |
|
| `useCallback`_(() => { ... })_ | |
|
||||||
| `useMemo`_(() => { ... })_ | |
|
| `useMemo`_(() => { ... })_ | |
|
||||||
|
|
Loading…
Reference in New Issue