React Tic Tac Toe tutorial – Full course

React Tic Tac Toe tutorial - Full course


Hey guys

This video is a react tic tac toe tutorial written in javascript. It’s part of a free course I did on Udemy / Skillshare. However I have decided that it’s probably worthy of publishing on YouTube. So here it is.

Please note: The gist used in this video can be found at https://gist.github.com/lyraddigital/452de5248778c6075c4604130661a42c

This course takes you through the steps of how to build a Tic Tac Toe game in React js from start to finish. You will learn as part of this react project some of the basics of React. This will include some react hooks such as useState etc. You will also know how to split a template into different react components.

Here are the key moments of the video.

00:00 Introduction
00:37 Tools and Resources
02:35 Creating our React project
05:07 Adding our game template
14:13 Creating the game component
18:01 Creating the board component
21:16 Creating the cell component
24:24 Populating cell content
29:00 Setting cell dynamic classes
39:00 Creating cells from dynamic data
43:23 Highlighting winning cells dynamically
47:53 Lifting game state
50:03 Configuring cell clicks
55:13 Populating cells on click
01:00:34 Changing turns
01:03:02 Prevent overwriting cells
01:05:33 Creating the result modal component
01:11:16 Controlling modal display from the game
01:15:08 Setting up game over state
01:17:39 Setting up the calculate winner function
01:21:52 Calculating a winner
01:35:06 Calculating a tie
01:39:41 Showing the game’s result
01:44:49 Fixing the winning combinations
01:47:38 – Starting a new game
01:51:32 – Outro

Enjoy the mini course

Daryl

Important Points to Consider When Selecting a Webhosting Company

When you select a webhosting company you need to take care. There are lots of elements to look at before you take a decision. You need to find a good webhosting service to guarantee that your website is visible to surfers at least 99.7% of the time.

A Few Tips on Designing User Friendly Websites

Though there are millions of websites, all are not equally popular. The reason is that most websites are not user friendly. It is a good idea to examine the elements of a user friendly website. Some of the important aspects are discussed here.

Taking Effective Steps to Decrease Page Load Times

Even a non-business website or blog needs to load in a sufficiently reasonable amount of time otherwise people will leave quickly, never to come back. There are many good websites out there with quality content, but still aren’t able to retain visitors just because they’re slow and bulky. If you want to ensure that your visitors enjoy their visit to your site and have a good experience then you should at all times optimize your site to get the best results.

Why Having a Website for Your Business Makes Sense?

Website design is the most crucial of all the marketing media at your disposal. All other forms of advertising (business cards, brochures, etc.) can be patterned after you website design layout. To attract prospective clients/customers who are surfing the Internet, your site must draw them in and hold their attention until your desired result is achieved. Like a good writer telling a story, you need to grab and hold your reader’s attention.

How to Design Your Website for Mobile Phone Compatibility

Building websites for desktop users alone is now out of fashion. Users today access the internet from a variety of devices including laptops, tablet computers, and mobile phones. It is important for companies to keep up with these changes. There are a lot of opportunities associated with mobile internet. So if you’re ready to take the step forward, one pressing question is, “how can you design your website for mobile phone compatibility?”