Start interactive tutorial

← Back to Projects

TicTacToe with React.js

Difficulty

  • easy

Average duration

16 hrs

Technologies

Difficulty

  • easy

Average duration

16 hrs

Technologies

📝 Instructions

Time to start building cool stuff, let's code our first game!

TicTacToe Preview

🌱 How to start this project

Do not clone this repository! We will be using a different template.

We recommend opening the react.js boilerplate, using a provisioning tool like Codespaces (recommended) or Gitpod. Alternatively, you can clone the GitHub repository on your local computer using the git clone command.

This is the repository you need to open or clone:

1$ git clone https://github.com/4GeeksAcademy/react-hello

💡 Important: Remember to create a new repository, update the remote (git remote set-url origin <your new url>), and upload the code to your new repository using add, commit and push.

📝 Instructions

Create a Tictactoe in React.js just like this one. Remember to follow the recommended workflow to start coding:

  1. Design your sitemap: How many pages/views?
  2. Designing your wireframe: What components and where?
  3. Start coding your components only rendering "Hello world" on each of them (to make sure they work).
  4. Create a list of all the possible user and system interactions (events) that occurs during runtime (for example: The user clicks on a button to start the game)
  5. Create a javascript function that will handle each of those events.
  6. Console.log on each of those functions to make sure they are being called.
  7. Continue... watch the video if you have any other doubts.

Concepts you will learn:

  • State of the components (global variables)
  • Props
  • Render method
  • The function for checking the winner is a great learning algorithm

Video Tutorial:

Here is a video explaining how to do it: https://www.youtube.com/watch?v=MQonrbY8Ezg&list=PLx0T51ydRO_7qabdLlT69keo68WmbXkrB

Sign up and get access to solution files and videos for free

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • easy

Average duration

16 hrs

Technologies

Difficulty

  • easy

Average duration

16 hrs

Technologies

Difficulty

  • easy

Average duration

16 hrs

Technologies

Difficulty

  • easy

Average duration

16 hrs

Technologies

Sign up and get access to solution files and videos for free

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • easy

Average duration

16 hrs

Technologies

Difficulty

  • easy

Average duration

16 hrs

Technologies

Supplementary Material

In order to prepare better for completing this exercises, we suggest the following materials

Lesson

React Hooks Explained

Lesson

Learn React here: React JS Tutorial

Exercise

Learn React.js Tutorial and Interactive Exercises