Add resources to useReducer (#6372)
parent
80eeadd6a6
commit
55dfae773b
1 changed files with 8 additions and 0 deletions
@ -1 +1,9 @@ |
||||
# useReducer |
||||
|
||||
useReducer: An alternative to useState. Accepts a reducer of type (state, action) => newState, and returns the current state paired with a dispatch method. (If you’re familiar with Redux, you already know how this works.) |
||||
|
||||
Learn more from the following resources: |
||||
|
||||
- [@official@useReducer Docs](https://react.dev/reference/react/useReducer) |
||||
- [@article@The React useReducer Hook](https://www.telerik.com/blogs/react-usereducer-hook) |
||||
- [@article@A guide to the React useReducer Hook](https://blog.logrocket.com/react-usereducer-hook-ultimate-guide/) |
||||
|
Loading…
Reference in new issue