This is a simple memory game built via Vite for React
- Shows how to put logic in a custom hook: useGameLogic
- Shows the proper way to use useCallBack to
cachea function in a useEffect - show simple component state management
There is an assumption that you have node and some package manager already installed on you machine. If not, google how to run a nextJS app on my machine.
First, install the app if you have not run it before:
yarn install
# or
pnpm install
# or
bun install
# or
npm installOnce the installation is complated, execute one of the commands below to start the development server:
yarn dev
# or
pnpm dev
# or
bun dev
# or
npm run devOpen http://localhost:5173/ with your browser to see the app.