A Playful Intro to React

4.2 Average Customer Rating

Building a Tic-Tac-Toe Game

  • 13 Videos
  • 0 hours 47 minutes
  • 359 Happy Students

About the course

Do you want to learn React the fun way? In this class, you will learn the key concepts of React while building a Tic Tac Toe game.

React is currently the most popular front-end library. It’s easy to begin with yet it’s very capable even for building large-scale professional web-applications. In this course, we learn the fundamentals of React while having some fun and creating a Tic Tac Toe game.

While building a game we dive into the fundamentals of React like:

  • How to break down your application or game into smaller pieces, into components?
  • How to structure your logic and how to connect these components with props and callbacks?
  • How to deal with change, what is the state, what to store in it, and where to define it?
  • How to add interaction and how does re-rendering work in React?
  • And while it has nothing to do with React we are also going to draw some basic images by coding SVGs

This is an introductory course for beginners. We don’t get to more advanced things like routing or state management of large-scale applications. Instead, I give you a foundation you can build on.

Requirements:

This is an intro course, no prior React knowledge is required, but some HTML, CSS, and basic Javascript skills are necessary.

You can also check out the result of each lesson step by step on CodePen. Take a look on lesson notes in each step to see CodePen link

Note: If you are having problems with the settings: New versions of React and React DOM come out together, but it can happen that the website providing these libraries for CodePen is not up to date with both of them. If for some reason the version number of React and the version number of React DOM do not match then you have to downgrade the one with the higher version number by simply changing the number in the url of the added library to match.

  • 13 Videos
  • 0 hours 47 minutes
  • 359 Happy Students

Courses Outline

Lesson 1: A Playful Intro to React
Free
Introduction
0:44
Breaking down the game into components
3:13
Creating our first components
4:58
The Grid
4:46
Which square is which?
4:05
The changing parts
4:47
Our first attempt to have a state
3:09
Lifecycle of a component
2:53
Circles and Crosses
4:15
Interaction
4:06
Detecting the winner
4:43
And the winner is ...
5:29
Conclusion
0:43
  • 13 Videos
  • 0 hours 47 minutes
  • 359 Happy Students