MENU

Fun & Interesting

Learn React Hooks: useRef - Simply Explained!

Cosden Solutions 141,159 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-useRef In this video we will learn about React hooks, starting with useRef. This powerful React hook will allow you to store and manipulate values that are not needed for rendering. You will learn the difference between useRef and useState, when to use which, and how useRef works under the hood. We will use refs to handle values without triggering re-rendering, and we will also look at how refs can be used to manipulate HTML elements, as well as how they are used in 3rd party libraries. 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