April 2021
Intermediate to advanced
376 pages
9h 53m
English
This chapter covers
useRef hook to obtain a refcurrent propertyref attribute in JSX to assign DOM element references to a refWhile most of the values stored by your component will be directly represented in the user interface of your application, sometimes you’ll use a variable only for the mechanics of your app rather than for consumption by users. You may want to use setTimeout or setInterval as part of an animation, so you need to keep hold of the IDs they return. Or you may want to work with DOM form elements as uncontrolled ...
Read now
Unlock full access