MENU

Fun & Interesting

Learn React Hooks: useImperativeHandle - Simply Explained!

Cosden Solutions 30,962 2 years ago
Video Not Working? Fix It Now

🚀 Project React → https://cosden.solutions/project-react 📥 Import React (Newsletter) → https://cosden.solutions/newsletter?s=ytd Join The Discord! → https://discord.cosdensolutions.io Source Code → https://github.com/cosdensolutions/code/tree/master/videos/long/learn-react-hooks-useImperativeHandle 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!

Comment