Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Master JavaScript through projects
·
Module 8
Advanced Hooks and Global State
1
Managing Complex State with useReducer
Use the useReducer hook to manage complex state logic with actions and a reducer function.
2
React Context for Global State
Create a React Context to provide global state to a component tree.
3
Consuming Context with useContext
Consume values from a context using the useContext hook.
4
Scalable State with useReducer and useContext
Combine useReducer and useContext to build a scalable state management solution.
5
Direct DOM Access with useRef
Use the useRef hook to access DOM elements directly (e.g., to manage focus).
6
Optimizing with useMemo: Memoizing Expensive Computations
Use useMemo to memoize the result of expensive computations and prevent re-calculation.
Optimizing Callbacks with useCallback
Use useCallback to memoize callback functions passed as props to optimized child components.
Previous module
Client-Side Routing with React Router
Next module
Project Part 1: User Authentication