React 16.3 Forward Refs

preview_player
Показать описание
Learn how to use the new forward refs function in React 16.3.

Code:

Links from video:

----
Video Suggestions:

----
Follow Me Online Here:

----
#benawad

----
#benawad
Рекомендации по теме
Комментарии
Автор

That feature is meant for css in js libraries like styled components. Now you don't need to use innerRef in styled component once they update to this.

harshitpant
Автор

Thanks man, you honestly break this down perfectly to beginners. Much respect

trent
Автор

Nice explanation. Thanks, Ben. - Davis

eazlai
Автор

Thank you for this tutorial, may you make a video speaking of the context API :)? And the new lifecycles methods. Thank you:D

andresmontoya
Автор

Are you able to forward refs to class components as well, not just functional components? Is there an example of that? Thanks.

Veraudunus
Автор

Ben -did your font size change over the past few videos? This old guy is having a hard time reading your code :)

willcalltickets
Автор

Hello Ben, Thanks for this great video, What about loops? How can I create child refs for a list of child components?

chethannp
Автор

And about have more that one ref in children component ? Like in your MyInput component, add two input elements with ref. How to do that ?

ridermansb
Автор

How do you do the clean up in time 2:28? look so handy.

sad
Автор

Does anyone know how to setup prop-types with forwardRef?

enisjasarovic
Автор

how would you create a list of input with refs and auto focus the next input on enter?

MrPenny
Автор

Not sure if i like this new approach. Means that you have to convert all your stateless functions with refs to classes.

julianklumpers
Автор

Can u do a series on semanti-ui-react?

Albertmars
Автор

so you want to be a software engineer at google

hardikpoudel
Автор

Ah but I don't wanna use a class. Whatever happened to functional components. Hopefully using the class syntax will become optional in the future, somehow!

sumantkanala