4Geeks logo
About us

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.

Data Science and Machine Learning - 16 wks

Full-Stack Software Developer - 16w

Search from all Lessons

Social & live learning

The most efficient way to learn: Join a cohort with classmates just like you, live streams, impromptu coding sessions, live tutorials with real experts, and stay motivated.

← Back to Projects

TicTacToe with React.js

Goal

4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills

Difficulty

easy

Repository

Click to open

Video

Click to open

Live demo

Not available

Average duration

16 hrs

Technologies

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

Goal

4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills

Difficulty

easy

Repository

Click to open

Live demo

Not available

Average duration

16 hrs