An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
April 9, 2022 06:38 am GMT
Original Link: https://dev.to/adrianchong/make-a-tic-tac-toe-by-using-nextjs-react-and-redux-with-typescript-1no6
Make a TIC-TAC-TOE by using NextJs, React and Redux with Typescript
Demo link: https://tictactoe-hu2mk80qr-phonist.vercel.app/
GitHub repo: https://github.com/phonist/tictactoe
About The Project
This is a straightforward Tic Tac Toe game.
The game is build using NextJs on top of React with Typescript.
Then there's redux, redux-thunk, and material-UI.
Build With
Getting Started
The project are mainly categorize into three parts (UI, redux logic and typescript interface):
pages|-- index.tsx|-- _app.tsx|-- Board.tsx|-- Game.tsx|-- Square.tsxredux|-- reducers|-- actions|-- thunks|-- types |-- interfaces|-- reducers.ts|-- store.ts
- All UI components are kept in the
pages
folder.. - All redux logic are kept inside
redux
folder. - All typescript interfaces are kept inside
types
andtypes/interfaces
folder.
Prerequisites
- Node - 16.2.0
- Yarn - 1.22.17
Installation
- git clone https://github.com/phonist/tictactoe.git
- cd tictactoe
- yarn dev
- navigate to localhost:3000 and start your development
Original Link: https://dev.to/adrianchong/make-a-tic-tac-toe-by-using-nextjs-react-and-redux-with-typescript-1no6
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To