#reactjs
Guide through most common mistakes when using Refs to manipulate DOM in React.
📖 Concepts:
Why to use Refs, not DOM API selectors?
What is render and commit phase in React?
Why refs are called an escape hatch?
What aspects of DOM should be controlled by state and refs?
⏱️Timestamps:
00:00 - Video Outline
00:31 - Mistake #1 - Using DOM API selectors to query for DOM nodes
01:46 - Mistake #2 - Accessing DOM Ref before component mounts
02:36 - Mistake #3 - Accessing DOM Ref in render phase
06:34 - Mistake #4 - Accessing DOM Ref when component doesn't render it
10:00 - Mistake #5 - Modifying DOM directly where it should be managed by React
Icons: https://www.flaticon.com/
In questa pagina del sito puoi guardare il video online Essential React: 5 Mistakes to Master React DOM Refs della durata di ore minuti seconda in buona qualità , che l'utente ha caricato UI Engineering 28 novembre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 650 volte e gli è piaciuto 57 spettatori. Buona visione!