Learn React Hooks: useImperativeHandle - Simply Explained!
Cosden Solutions
0:00 / 0:00
Learn React Hooks: useImperativeHandle - Simply Explained!
42 938 просмотров · 3 года назад
Cosden Solutions
182 тыс. подписчиков
42 938 просмотров · 3 года назад
🚀 Project React → https://cosden.solutions/project-react
📥 Import React (Newsletter) → https://cosden.solutions/newsletter?s...
Join The Discord! → https://discord.cosdensolutions.io
Source Code → https://github.com/cosdensolutions/co...
In this video we will learn about React hooks, starting with useImperativeHandle. This powerful React hook will allow you to expose certain functions from a child component to the parent component via a ref. It is extremely useful in situations where you want to call some behaviour in a child from a parent without explicitly providing a callback from the parent. In this video, we look at all of the use cases for useImperativeHandle and how it works!
In this new React world, hooks are here to stay, so it's best to learn them! In this tutorial I demonstrate the useRef React hook, and I explain it very simply and in a way that is easy to understand. Enjoy!