https://github.com/trantuvan/odin-memory-card
odin-memory-card
https://github.com/trantuvan/odin-memory-card
cssmodules react-hooks react-tsx vite
Last synced: 5 months ago
JSON representation
odin-memory-card
- Host: GitHub
- URL: https://github.com/trantuvan/odin-memory-card
- Owner: Trantuvan
- Created: 2023-02-17T04:19:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-14T06:52:49.000Z (almost 3 years ago)
- Last Synced: 2025-04-06T10:47:59.692Z (about 1 year ago)
- Topics: cssmodules, react-hooks, react-tsx, vite
- Language: TypeScript
- Homepage: https://trantuvan.github.io/odin-memory-card/
- Size: 1.51 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/mooniiDev/memory-game) 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](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.