In this exercise, you will use state with an API to make a gallery.
Download this video to see how it should look like: Download.
- Fork this repo to your account
- Clone it
cd react-gallerynpm installnpm start
You will need to use 2 API endpoints:
- To get the albums:
https://jsonplaceholder.typicode.com/albums - To get the photos of an album:
https://jsonplaceholder.typicode.com/photos?albumId=[ID]where [ID] is the album's ID of course.
You don't need to create any new components, you can use App component only.
All rights reserved to Evyatar Rosner