An open API service indexing awesome lists of open source software.

https://github.com/parambirs/react-tic-tac-toe

React tic-tac-toe tutorial (with solved exercises)
https://github.com/parambirs/react-tic-tac-toe

react react-typescript reactjs tic-tac-toe typescript

Last synced: about 2 months ago
JSON representation

React tic-tac-toe tutorial (with solved exercises)

Awesome Lists containing this project

README

          

# react-tic-tac-toe

[React tic-tac-toe tutorial](https://reactjs.org/tutorial/tutorial.html) implemented in TypeScript. It also includes the
code for the following challenges presented at the end of the tutorial:

- Display the location for each move in the format (col, row) in the move history list.
- Bold the currently selected item in the move list.
- Rewrite Board to use two loops to make the squares instead of hardcoding them.
- Add a toggle button that lets you sort the moves in either ascending or descending order.
- When someone wins, highlight the three squares that caused the win.
- When no one wins, display a message about the result being a draw.

The code is compiled using [Parcel Bundler](https://parceljs.org/).

## See it in action

https://parambirs.github.io/react-tic-tac-toe/

## Running locally

```
npm run dev
```

## Building production version

```
npm run build
```