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 fundamentals and component lifecycle
·
Module 8
Creating Reusable Logic with Custom Hooks
1
Extracting Repetitive Logic with Custom Hooks
Identify repetitive logic that can be extracted into a custom hook
2
Crafting Custom Hooks: The 'use' Convention
Create a custom hook following the 'use' naming convention
3
Custom Hooks: Returning Values and Functions
Return values and functions from a custom hook for component use
4
Sharing Logic with Custom Hooks
Reuse a custom hook across multiple components to share stateful logic
5
Building a useLocalStorage Hook
Build a `useLocalStorage` custom hook to persist state in the browser
Previous module
Styling in React with Tailwind CSS
Next module
Advanced State Management: Context and `useReducer`