Descubre el hook useImperativeHandle #reactjs #reactjstutorial #nextjs

In this video, we'll review the new useImperativeHandle hook in React 18, which allows you to customize the reference exposed by a component. 💛 The folks at Garaje de Ideas sponsor Latte and Code and are looking for talent: http://bit.ly/garaje-tech-talento 👨🏼‍💻 Support me on Patreon:   / latteandcode   ☕️ Buy me a coffee: https://www.buymeacoffee.com/latteand... 👉 https://codesandbox.io/s/useimperativ... Today I'm bringing you a very interesting video if you want to continue discovering all the new features that React introduced in version 18. In this case, we'll talk about the useImperativeHandle hook, which allows us to define which methods are exposed by the reference accepted by a component. [00:00] Introduction [01:08] References with forwardRef [05:33] useImperativeHandle [08:40] The true power of useImperativeHandle By combining the useImperativeHandle hook with forwardRef, we can expose to the parent component any methods and properties we want from one of the elements we are rendering. And not only that, but we can also expose our own methods so that we can even cause changes in the component's state. As you can see, a very powerful tool, especially if you are creating component libraries. 💛 I hope you like it!