easyReact#45

useRef for DOM access

Prompt

Use useRef to focus a TextInput when a button is pressed. The TextInput should auto-focus when the component mounts.

Hints

Solution

Your Code

5 min

Tests

Click Run to test your code