Put in order · React Native course · Module 4: State and API data
fetch POST
Arrange fetch POST elements from outer to inner:
Items to put in order
- method: 'POST'
- fetch(url, { ... })
- headers: { 'Content-Type': 'application/json' }
- body: JSON.stringify(data)
You can check the correct answer by solving this task in the CodeWorlds game.