GithubHelp home page GithubHelp logo

jmalinkiewicz / react-redux-tic-tac-toe Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 189 KB

Web Tic-Tac-Toe, with React for the front-end and React-Redux handling game score state

Home Page: https://jmalinkiewicz.github.io/react-redux-tic-tac-toe/

JavaScript 6.57% HTML 3.43% CSS 8.13% TypeScript 81.88%

react-redux-tic-tac-toe's Introduction

React-Redux Tic-Tac-Toe

Client-side Tic-Tac-Toe game, with React for the front-end and React-Redux handling game score state

Redux state handling

In the bottom right corner, click show score to display player names and game score. Both of those states are handled and managed by React-Redux. Click on player name to focus the text input, delete default name and type your custom one. Notice the text below the playing grid now displays Turn: **your input**. Play a round and notice score property is updated after every game.

Tech stack

  • React 18.2.0
  • React-Redux 9.1.2
  • Tailwind CSS
  • Framer Motion
  • Typescript

Run the app

  1. Clone the repo:
    git clone https://github.com/jmalinkiewicz/react-redux-tic-tac-toe.git
  2. If you don't have Node.js installed, go to https://nodejs.org/en and install it
  3. Install all the necessary dependencies:
    npm install
  4. Run the app:
    npm run dev
  5. The app should be accessible at http://localhost:5173/react-redux-tic-tac-toe/

react-redux-tic-tac-toe's People

Contributors

jmalinkiewicz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.