Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cybervoid0/domino-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Domino game by Alex Shenshin (written in React.js)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published