Question · React Native course · Module 4: State and API data
fetch GET
How do you correctly fetch JSON data using fetch?
Answer options
- fetch(url).json()
- await fetch(url).then(r => r.json())
- fetch.get(url)
- JSON.fetch(url)
You can check the correct answer by solving this task in the CodeWorlds game.