Forwarding refs to Functional Components - React

preview_player
Показать описание
Forwarding refs to Functional Components - React Native
Using and comparing React forward.Ref and renaming the ref prop.

0:15 example with Core Component
0:45 example with Functional Component
1:30 Warning messages
2:01 The problem - why?
2:32: Printing out ref prop of a Functional Component
3:30 Solutions
3:50 React forward.Ref
5:54 Rename the prop
7:11 Comparison
7:44 Cases to use forwardRef
Рекомендации по теме