A hook is a function that enables you to use state and other React features inside functional components. useRef is a type of React hook which accepts a single argument and returns an object. Unlike useState, useRef does not trigger rerender. import ...

Markdown supported · ⌘↵ to post
No responses yet.