Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

useImperativeHandle | React Hooks Tutorial #12

Автор: Philip Fabianek

Загружено: 2021-04-14

Просмотров: 6197

Описание:

In this final episode of my React Hooks Tutorial, we will learn about the useImperativeHandle hook. In order to understand the useImperativeHandle hook, we first have to understand the concept of forwarding refs using the React.forwardRef function. This allows us to pass refs to nested components, because we cannot achieve so using the ref keyword. After that, we will make use of the useImperativeHandle hook inside an input to modify the forwarded ref by exposing a custom focusAndBlur property. The useImperativeHandle hook will allow us to call that method from the parent component using a button.

Starting repository:

https://github.com/philipfabianek/rea...

Ending repository:

https://github.com/philipfabianek/rea...

Timestamps:

►0:00 Introduction
►0:26 Explaining forwaring refs
►1:09 Explaining the useImperativeHandle hook
►1:44 Creating input and the parent ref
►2:23 Forwarding the parent ref
►3:38 Implementing the useImperativeHandle hook
►5:10 Creating a button to call focusAndBlur on click
►5:45 Ending

Social Media:

►Twitter:   / philip_fabianek  
►LinkedIn:   / philip-fabianek  
►Website: http://www.philipfabianek.com
►GitHub: https://github.com/philipfabianek

useImperativeHandle | React Hooks Tutorial #12

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Как на самом деле работает React? Глубокое погружение в React.js №1

Как на самом деле работает React? Глубокое погружение в React.js №1

Learn useImperativeHandle In 10 Minutes

Learn useImperativeHandle In 10 Minutes

Mastering React's useEffect

Mastering React's useEffect

useImperativeHandle Explained with an Example | React Hooks Tutorial

useImperativeHandle Explained with an Example | React Hooks Tutorial

React useRef and forwardRef in depth

React useRef and forwardRef in depth

Custom hooks | React Hooks Tutorial #10

Custom hooks | React Hooks Tutorial #10

Learn React Hooks: useLayoutEffect - Simply Explained!

Learn React Hooks: useLayoutEffect - Simply Explained!

Вероятно, вы неправильно используете React Hooks

Вероятно, вы неправильно используете React Hooks

Learn useRef in 11 Minutes

Learn useRef in 11 Minutes

React Hooks - useRef | forwardRef | useImperativeHandle SIMPLIFIED !!

React Hooks - useRef | forwardRef | useImperativeHandle SIMPLIFIED !!

Mastering React Memo

Mastering React Memo

Ariana Grande, Mariah Carey, Justin Bieber, Christmas Songs Christmas Songs Playlist 2026

Ariana Grande, Mariah Carey, Justin Bieber, Christmas Songs Christmas Songs Playlist 2026

Learn React useReducer Hook with Examples

Learn React useReducer Hook with Examples

React Hooks useLayoutEffect Tutorial

React Hooks useLayoutEffect Tutorial

Chillout Lounge Radio - 24/7 Live | Smooth Background Music | Focus, Study, Work, Sleep, Meditation

Chillout Lounge Radio - 24/7 Live | Smooth Background Music | Focus, Study, Work, Sleep, Meditation

Webpack 5 Crash Course | Frontend Development Setup

Webpack 5 Crash Course | Frontend Development Setup

Why React Strict Mode breaks your app – on purpose

Why React Strict Mode breaks your app – on purpose

REACT MEMO vs USECALLBACK vs USEMEMO

REACT MEMO vs USECALLBACK vs USEMEMO

What are React Hooks? | React Hooks Tutorial #1

What are React Hooks? | React Hooks Tutorial #1

React Hook useRef and forwarding refs with forwardRef

React Hook useRef and forwarding refs with forwardRef

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]