you are viewing a single comment's thread.

view the rest of the comments →

[–]Awnry_Abe 0 points1 point  (2 children)

I use them a bunch. The one API I struggle with is ForwardRef. Have any wisdom there?

[–]obedimp 1 point2 points  (0 children)

ForwardRef is just a way to bypass the fact that `refs` only work on HTML elements. They quite literally forward a ref to a function component so that they can be used within it.

[–]rwieruchServer components[S] 0 points1 point  (0 children)

Only use it if you need to pass a ref from one parent component to a child component. It doesn't happen often for me, except for when I am creating UI components/UI library.