Learning Objectives
- On load, use fetch to hit a GET endpoint, get all items, and set state and update the view using the response.
- Locate data, paging, and metadata in a REST response
- Use useEffect hook with a dependency array to retrieve data when a component first mounts
- Use .map to change the shape of an array of data
- Create the illusion of multiple pages in a Single Page Application routes by using react-router.
Acceptance Criteria
- Films route shows the list of films
- Characters route shows the list of characters