Part 47 React Tutorial | React Hooks | useRef hook | Timer task | UnControlled Way

Pubblicato il: 29 marzo 2023
sul canale di: Trinits Technologies
58
0

useRef() is a React hook that returns a mutable ref object. A ref is a way to store a value that persists between renders and is not part of the component state. Unlike the state, changes to a ref do not trigger a re-render of the component.

useRef Hook allows you to persist values between renders.
It can be used to store a mutable value that does not cause a re-render when updated.
It can be used to access a DOM element directly.

useRef() only returns one item. It returns an Object called current.
const count = useRef(0);


In questa pagina del sito puoi guardare il video online Part 47 React Tutorial | React Hooks | useRef hook | Timer task | UnControlled Way della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Trinits Technologies 29 marzo 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 58 volte e gli è piaciuto 0 spettatori. Buona visione!