Self-paced

Explore our extensive collection of courses designed to help you master various subjects and skills. Whether you're a beginner or an advanced learner, there's something here for everyone.

Bootcamp

Learn live

Join us for our free workshops, webinars, and other events to learn more about our programs and get started on your journey to becoming a developer.

Upcoming live events

Learning library

For all the self-taught geeks out there, here is our content library with most of the learning materials we have produced throughout the years.

It makes sense to start learning by reading and watching videos about fundamentals and how things work.

Search from all Lessons


LoginGet Started

Register to 4Geeks

← Back to Projects

TicTacToe with React.js

Difficulty

  • easy

Average duration

16 hrs

Technologies

Difficulty

  • easy

Average duration

16 hrs

Technologies

🌱 How to start this project
📝 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.

The first step to start coding is cloning the react.js boilerplate on your local computer or opening it using gitpod.

a) If using Gitpod you can clone the boilerplate by clicking here.

b) If working locally type the following command from your command line: $ 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 functions that will handle each of those events.
  6. Console.log on each of those funtions 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

Signup and get access to similar projects

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

Signup and get access to similar projects

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