Skip to content

OlegSyng/react-snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game built with React.js

This project aimed to reproduce famous Snake game using React.js.

Concepts used

- Create a game loop using useEffect with clean-up function;
- Listen to user key inputs with useEffect (componentDidMount, componentWillUnmount);
- useReducer for advanced component state management;
- Rendering lists in React;
- Conditional rendering;
- Positioning elements with CSS grid properties;
- Create portals for a modal component;
- Lifting state up to parent component;
- Working with React-select package;

Screenshot

About

Snake Game App built with React.js

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors