Facebook updated their react documentation and they have a great tutorial on building a tic tac toe game! I used their create-react-app npm package to start building the tic tac toe game.

Tutorial Link Here

If you want to use facebooks create-react-app package you need to have node installed

After that you need to run this command in the terminal

  npm install create-react-app -g

This will install create-react-app globally, so you can use it anywhere

Now run create-react-app plus whatever you want to name the app in the terminal

  create-react-app tic-tac-toe

Now you can start developing react apps without worrying about the boilerplates needed to start a react application

Instead of using 'x' and 'o' I used my friends as the two in gif form!


Play Game!

Source Code