codex-lv3-may-2025

Fetch Kata with Map Assignment

Objective

Complete the fetch kata that uses the Fetch API and the map() method to fetch and display data from an API.


Instructions

📖 Complete the kata: Kata 12: Fetch and Display Pokemon (Promises)

Optional: Also try Kata 13: Fetch and Display Pokemon (Async/Await) to see the async/await approach.

Then extend it to use map() to display multiple pokemon from a list endpoint.

Recommended next steps:


Required Deliverables

Submit the following through Moodle:

  1. GitHub Repository Link
    • Include your React component file
    • Make sure the repository is public or shared with your instructor
  2. Screenshot
    • Show your component displaying the fetched pokemon data
    • Show the browser console (to verify the API call)
  3. Brief Explanation (2-3 sentences)
    • How did you use map() to display multiple pokemon?
    • What challenges did you face?

Grading Criteria

Total: 100 points


Resources


Questions? Ask in the discussion forum or review the React documentation on useEffect.

Good luck! 🚀