Mangon / ReactStarter

A react starter project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tic-tac-toe

Follow the guide https://reactjs.org/tutorial/tutorial.html

  1. Lets you play tic-tac-toe.
  2. Indicates when one player has won the game.
  3. Stores the history of moves during the game.
  4. Allows players to jump back in time to see older versions of the game board.
  5. Display the move locations in the format “(row, col)” in the move list.
  6. Bold the currently selected item in the move list.
  7. Rewrite Board to use two loops to make the squares instead of hardcoding them.
  8. Add a toggle button that lets you sort the moves in either ascending or descending order.
  9. When someone wins, highlight the three squares that caused the win.
  10. When no one wins, display a message about the result being a draw.

build steps

$ npm install
$ npm run dev

The project will be running at http://localhost:8080/

command lines

  1. $ npm run build
    complie the source files into bundle.js.

  2. $ npm run dev
    start a webpck dev server based on the build folder.

About

A react starter project


Languages

Language:JavaScript 99.7%Language:HTML 0.2%Language:CSS 0.2%