Add resources to useReducer (#6372)

This commit is contained in:
Nazrul Islam
2024-08-05 09:49:52 +01:00
committed by GitHub
parent 80eeadd6a6
commit 55dfae773b
@@ -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/)