From b54a975c74d8ac5c49ed9eb1eb15cacd0dbf9c85 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Wed, 18 Dec 2019 13:34:15 +1100 Subject: [PATCH] Fix tables for the hooks list --- react.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/react.md b/react.md index 6a94384bb..3aae19340 100644 --- a/react.md +++ b/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`_(() => { ... })_ | |