Skip to content

scissorsneedfoodtoo/tic-tac-toe-react

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

Created as one of the freeCodeCamp advanced front end development projects. My goal was simply to model Google's tic-tac-toe web app as closely as possible using React.

Since this was my first time using React, I used this video was used as a jumping off point. Some of the code, such as the method for adding X's and O's to the board using map to append the current symbol to the board's array, is taken from the video tutorial. However, setting the symbols this way does cause the state to be mutated directly rather than with setState, so I plan to change those bits of code in the near future.

This project was bootstrapped with Create React App.

Check it out at https://scissorsneedfoodtoo.github.io/tic-tac-toe-react/.