Put in order · JavaScript and React course · Module 13: Testing React
Async component state sequence
Arrange the states of an asynchronous component in the order they appear:
Items to put in order
- Re-rendering with new data
- Sending request to API
- Updating state (loading: false, data: ...)
- Initial state (loading: true)
- Receiving the response
You can check the correct answer by solving this task in the CodeWorlds game.