Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 251 Bytes

usecurrentvalue.md

File metadata and controls

15 lines (10 loc) · 251 Bytes

useCurrentValue

The useCurrentValue hook allows associating a value with current based on its parameter, equivalent to:

const ref = useRef();

ref.current = value;

With the useCurrentValue hook

useCurrentValue(value)