Fang Jin
1 min readApr 3, 2019

--

There’s another old one. If you happen to have a handle of the children, you can just do child.method(). In react, it’s a ref. Although it’s not recommended, sometimes it can be handy.

--

--

Fang Jin
Fang Jin

Written by Fang Jin

Front-end Engineer, book author of “Designing React Hooks the Right Way” and "Think in Recursion"

No responses yet