Concept
Data fetching
Loading data for a UI: where requests start, caching, and loading and error states.
Learn firstEffects
Data fetching
What should you learn before Data fetching?
- ClosuresA function that keeps access to the variables of the scope it was created in, after that scope has finished.
- StateData that changes over time and makes the UI re-render, and where to keep it.
- React hooksFunctions such as useState and useEffect that add state and lifecycle to function components.
- Effects (useEffect)Syncing a component with things outside React, and cleaning up afterwards.
Connections to other concepts
- Related
- Suspense
Practise Data fetching
- Intermediate React Interview Questions1 question on Data fetching