React

Project: Memory Card

new

React Course

Introduction

Here we go again with a new project! Let’s make sure you understand the concepts so far. The main goal of this project is to implement the concepts learned so far by using hooks to manage and utilize state while fetching and using data from an external API.

How the game works

Go play around with this student’s solution to find out for yourself how the Memory game works. Although this example uses cartoon characters, you can use anything you like for your game.

Assignment

  1. Create a new React Project.
  2. Take some time to think about the features you want to implement, which components you need, how to structure your application, and how to get the images from an API. Your application should include a scoreboard, which counts the current score, and a “Best Score”, which shows the highest score you’ve achieved thus far. There should be a function that displays the cards in a random order anytime a user clicks one. Be sure to invoke that function when the component mounts.
  3. You also need a handful of cards that display images and possibly informational text. These images and texts need to be fetched from an external API. You can use anything from Giphy to a Pokemon API.
  4. Now that you’ve thought about the structure of your application, set up the folder structure and start creating the components.
  5. Style your application so you can show it off!
  6. As always, push the project to GitHub, and don’t forget to deploy it.

Support us!

The Odin Project is funded by the community. Join us in empowering learners around the globe by supporting The Odin Project!