Tic Tac Toe: React, TypeScript, XState, fp-ts & CSS Grid

Tic Tac Toe: React, TypeScript, XState, fp-ts & CSS Grid

Let’s explore tech with Tic Tac Toe, one of the most simple models out there. In this article, we’ll build Tic Tac Toe with React, Typescript, XState, fp-ts and CSS Grid.

Let’s explore tech with Tic Tac Toe, one of the most simple models out there.

In this article, we’ll build Tic Tac Toe with ReactTypescriptXStatefp-ts and CSS Grid.

Image for post

demo

0. Prerequisites

1. Assets

First, we need some assets to make our little game. We need a BoardPlayers (X and O), and the winner’s *Line *(horizontals, verticals and diagonals).

Use any drawing program, in my case, I’ll use Photoshop.

Make a 1080x1080 px canvas, draw some lines, each in their respective layer, and export each image.

Image for post

react css javascript typescript programming

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How native is React Native? | React Native vs Native App Development

Article covers: How native is react native?, React Native vs (Ionic, Cordova), Similarities and difference between React Native and Native App Development.

A Quick Intro to TypeScript for JavaScript Programmers

If you are a newer JavaScript developer like me you may have come across the superset of JavaScript known as TypeScript. TypeScript is an open-source extension of JavaScript that changes JavaScript from a functional programming language into an object-oriented programming language.

How to Build Meme Generator with React, React Hooks and TypeScript

The best way to learn something is by doing. It works even better if it means working on something for fun. So, how about learning about React, React hooks and TypeScript by building your own meme generator? This tutorial will show you how to do it.

Top VSCode Extensions for React, React Native, JavaScript and Productivity

Bunch of VSCode Extensions that improve quality of your coding time no matter what stack you are using. In this post, you'll see Top VSCode Extensions for React, React Native, JavaScript and Productivity

Build React Components for Codebases that use JavaScript & TypeScript

Learn how to build React components for codebases that use JavaScript and TypeScript. Learn how we can use TypeScript with React and built components that are usable within both TypeScript and JavaScript files.