SWAPI Router

Get Started

npm install

npm start

Instructions

  • Look at the components you have been given
  • Practice useEffect
  • Implement react-router to deliver on the deliverables

Deliverables

  • A user can vist a "/" route (Dashboard) that shows a list of 50 people from https://randomuser.me/api/ and an empty hired list
  • A user can click a link to view the person's profile
  • A user can vist a "/view/:id" route to view a person's profile
  • When a user clicks "Hire" they should be redirected to the dashboard AND see the person they've hired in the hired column

Challenges

  • A user can click "Edit" in the hired column
  • A user can edit the page of the hired person AND be redirected to the dashboard and see those changes.