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.
React.js: Basic to Advanced
·
Module 6
Advanced State, Context, and Refs
1
Understanding Prop Drilling
Explain the problem of "prop drilling" in large component trees.
2
Global State with React Context and TypeScript
Create and provide global state using `React.createContext` with TypeScript.
3
Using `useContext` in Nested Components
Consume context in nested components using the `useContext` hook.
4
Mastering `useReducer` for Complex State
Introduce the `useReducer` hook for managing complex state transitions.
5
Typing `useReducer` with Discriminated Unions
Define types for `useReducer` state and actions using discriminated unions.
6
Scalable State with useReducer & useContext
Combine `useReducer` and `useContext` to create a scalable state management solution.
7
Direct DOM Access with `useRef`
Introduce the `useRef` hook to access DOM elements directly for imperative actions.
8
Mastering `useRef`: Persistent Mutable Values
Use `useRef` to store mutable values that persist across renders without causing a re-render.
Previous module
Forms and Event Handling
Next module
Performance Optimization Techniques