Follow the guide https://reactjs.org/tutorial/tutorial.html
- Lets you play tic-tac-toe.
- Indicates when one player has won the game.
- Stores the history of moves during the game.
- Allows players to jump back in time to see older versions of the game board.
- Display the move locations in the format “(row, col)” in the move list.
- Bold the currently selected item in the move list.
- Rewrite Board to use two loops to make the squares instead of hardcoding them.
- Add a toggle button that lets you sort the moves in either ascending or descending order.
- When someone wins, highlight the three squares that caused the win.
- When no one wins, display a message about the result being a draw.
$ npm install
$ npm run dev
The project will be running at http://localhost:8080/
-
$ npm run build
complie the source files into bundle.js. -
$ npm run dev
start a webpck dev server based on the build folder.