Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 2.28 KB

README.md

File metadata and controls

53 lines (33 loc) · 2.28 KB

Final Quiz!

Until now, we've only been able to see the first page of results from the Giphy API. We need a pagination UI in order to see more results.

🏅 The goal of this final step, the quiz, is to solidify your learning by applying it to build your own pagination component.

Help! I didn't finish the previous step! 🚨

If you didn't successfully complete the previous step, you can jump right in by copying the step.

Complete the setup instructions if you have not yet followed them.

Re-run the setup script, but use the previous step as a starting point:

npm run setup -- src/10-loading-states

This will also back up your src/workshop folder, saving your work.

Now restart the app:

npm start

After some initial compiling, a new browser window should open up at http://localhost:3000/, and you should be able to continue on with the tasks below.

Exercise

  • Build a Pagination component that will allow you to paginate through the giphy results
    • Pagination has "Previous" & "Next" links/buttons
    • Display the <Pagination /> both above and below the <Results />
    • Use the offset property in the call to getResults() to request subsequent pages of results
    • Use the total property in the return value from getResults() to calculate how many pages there are
  • 🤓 BONUS: Disable the "Previous" & "Next" links/buttons when there are no previous/next pages
  • 🤓 BONUS: Use the Foundation Pagination as your HTML & CSS to support jumping to specific pages
  • Share your Pagination component and its use in App in a gist on my AMA

🧠 Elaboration & Feedback

After you're done with the quiz, please fill out the elaboration & feedback form. It will help seal in what you've learned.

👉🏾 Next Step

Go to the End.

❓ Questions

Got questions? Need further clarification? Feel free to post a question in Ben Ilegbodu's AMA!