scrimba
React Bootcamp Course
Fetch Photos
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Fetch Photos
AboutCommentsNotes
Fetch Photos
Expand for more info
z_challenge.md
run
preview
console
# Challenge

Get the JSON data with the photos information from the API and save it to context state

1. As soon as the ContextProvider component renders, get the JSON data from this url:
https://raw.githubusercontent.com/bobziroll/scrimba-react-bootcamp-images/master/images.json

2. Save the array of data that comes back to state.

Review data fetching in React using `fetch`:
https://scrimba.com/p/p7P5Hd/c79Jask
Console
/
-3:39