filmov
tv
Why use a Custom Hook for React Context API instead of useContext (+ TypeScript)
Показать описание
Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).
👉 Discord: all my courses have a private Discord where I actively participate
⏱️ Timestamps:
0:00 Intro
0:07 Context example
1:04 Wrap app with context
1:42 Client component
2:13 Consuming context (useContext)
3:09 First problem
3:20 Second problem
4:18 Check for null
4:47 Custom hook
5:45 Consume context
6:18 Context API TypeScript typing
6:27 Component props type
6:37 Context type
7:51 'Light' | 'Dark' type
8:34 Theme type
8:48 Type alias vs Interface
9:03 setTheme type
#webdevelopment #programming #coding
👉 Discord: all my courses have a private Discord where I actively participate
⏱️ Timestamps:
0:00 Intro
0:07 Context example
1:04 Wrap app with context
1:42 Client component
2:13 Consuming context (useContext)
3:09 First problem
3:20 Second problem
4:18 Check for null
4:47 Custom hook
5:45 Consume context
6:18 Context API TypeScript typing
6:27 Component props type
6:37 Context type
7:51 'Light' | 'Dark' type
8:34 Theme type
8:48 Type alias vs Interface
9:03 setTheme type
#webdevelopment #programming #coding
Learn Custom Hooks In 10 Minutes
Custom Hooks in React (Design Patterns)
Full React Tutorial #20 - Making a Custom Hook
Why use a Custom Hook for React Context API instead of useContext (+ TypeScript)
React Hooks Tutorial - 30 - Custom Hooks
Custom Hooks in React - Every React Developer Should Know This
How you can use custom hooks to abstract your react code
Why I Don’t Use useEffect In My React Components
How to Create Custom Hooks in React | Create Your Own Hooks in React JS
5 Custom React Hooks You Need In Every Project
React Custom Hooks: useLocalStorage - Simply Explained!
Why you need hooks and project
Custom Hooks in ReactJS 🥳 - Best Code Example
Custom Hooks React | React Hooks Tutorial
Every Big React App Needs These 5 Custom Hooks
React Custom Hooks: useDebounce - Simply Explained!
DO NOT Use Hooks in Next.js?? | Josh Reacts
Custom Hooks in React JS in Hindi | Create Your Own Hooks in React JS | Custom Hook
La CLAVE de los CUSTOM HOOKS en React. ¡Te enseño POR QUÉ tienes que aprenderlos y cómo CREARLOS! 🔥...
React Course - Fundamentals - Custom Hooks
How to Create a Custom Hook in React
All React Hooks Tutorial + Building a Custom Hook in React JS
Learn how to create Custom Hooks in React in 24 minutes (+ useRef Tutorial for beginners)
Custom Hooks in React
Комментарии