learn deep. ship safe.Practice testsFollow ByteMunSubscribe

Concept

Data fetching

Loading data for a UI: where requests start, caching, and loading and error states.

Concept map
Learn firstEffects
Data fetching

What should you learn before Data fetching?

  1. ClosuresA function that keeps access to the variables of the scope it was created in, after that scope has finished.
  2. StateData that changes over time and makes the UI re-render, and where to keep it.
  3. React hooksFunctions such as useState and useEffect that add state and lifecycle to function components.
  4. Effects (useEffect)Syncing a component with things outside React, and cleaning up afterwards.

Connections to other concepts

Related
Suspense

Practise Data fetching

All topics