Converting a class component with refs to a function component with hooks

You may have a custom text input class component that exposes some methods which you can call via holding a ref to it. We'll show you how to do the same thing with a function component with hooks.

Read