learn deep. ship safe.Practice testsFollow ByteMunSubscribe

Concept

Refs

Holding a value or DOM node across renders without causing a re-render.

Concept map
Learn firstReact hooks
Refs

What should you learn before Refs?

  1. FunctionsReusable blocks of code; in JavaScript they are values that can be passed around and returned.
  2. PropsInputs passed from a parent component to a child.
  3. Variables and scopeWhere a variable can be read: global, function and block scope, and how let, const and var differ.
  4. ClosuresA function that keeps access to the variables of the scope it was created in, after that scope has finished.
  5. StateData that changes over time and makes the UI re-render, and where to keep it.
  6. React hooksFunctions such as useState and useEffect that add state and lifecycle to function components.

Practise Refs

All topics