diff --git a/react/react-hooks.md b/react/react-hooks.md new file mode 100644 index 0000000..8be8932 --- /dev/null +++ b/react/react-hooks.md @@ -0,0 +1,16 @@ +# React Hooks in a Nutshell + +- **useState:** Hold/update values + re-render. + +- **useRef:** Hold values, no re-render. + +- **useEffect:** Execute side effects after render. + +- **useReducer:** useState with reducers. + +- **useMemo:** Cache values between renders. + +- **useCallback:** Retain function identities. + +[source](https://x.com/_georgemoller/status/1763363283883487516) +