Dynamic Refs and State in React

preview_player
Показать описание
CONNECT ON MY DISCORD COMMUNITY:

In this video you'll learn how to create dynamic refs and state. It's easy to simply create several refs to reference specific elements. But when you have elements that are dynamic or coming from a loop or an api you need to make your refs dynamic and have a way to access them. And the same issue arises with state. You need to be able to make dynamic states in loops especially if you have looped content coming from an API. In this video You'll also learn how to update objects in an array state. This is a little more tricky because you cannot simply mutate the state directly. Instead you have to create a new object. Enjoy. See you in discord.

SOCIALS:
Рекомендации по теме
Комментарии
Автор

These are some things which are really helpful and are not easily available, Thanks for explaining this like a bullseye. Great Work 👍

akhilscamp
Автор

Thanks for sharing !!! This was very helpful!

Marlorouse
Автор

how to use it with useArrayField from react hook form?? or when the fields are dynamic ?? not working with useFieldArray when fields are created with button click and in your example you created the fields opject manually.

mayankchopra