Giter Site home page Giter Site logo

domino-react's Introduction

Dominoes game in React

Play Domino with A.I.

I wrote this small implementation of Domino to practice React and related technologies and to find out how to animate components mount. The most challenging was to choose animation technology. My choise was beween CSS keyframes and two react animation libraries framer-motion and react-spring. Finally I chose the Framer-Motion because I found it's logic more reasonable. As a state container I considered 'react context', but in the end I chose Redux Toolkit because it makes it very convenient to keep all state-handling actions in logically separated slices rather than in some higher-order component. Finally I was thinking what styling engine to choose. I looked at css modules, sass, but selected Styled Components because it has a feature to pass JS variables (props) into CSS which I found extremely handy. As a result, I managed to achieve my goal: I was able to animate mounting and unmounting of react components which is beautiful in itself.

domino-react's People

Contributors

shenshin 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.