Skip to content

Trantuvan/odin-memory-card

Repository files navigation

odin-memory-card

What is this about?

This toy project is a reinforcement to React hooks.The looks & feels of the project is a clone of @Moonii to showcase the understanding of concepts below:

  • UseState
  • useEffect
  • ForwardRef

The aim of this project is to build a simple and minimalist memory card game.

How to play

  • Choose a card, but don't click on the same one twice.
  • Each correct choice gives you 1 point.
  • Score 20 points and win the game

Getting Started with Vite

Available Scripts

In the project directory, you can run:

npm run dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm run build

Builds the app for production to the dist folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

npm run deploy

Deploy the app using github-pages as a free host services.