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

https://github.com/derrmru/react-snake

Classic (and addictive) Snake game - built as a reusable react component.
https://github.com/derrmru/react-snake

404-pages gatsbyjs reactjs snake-game

Last synced: 6 months ago
JSON representation

Classic (and addictive) Snake game - built as a reusable react component.

Awesome Lists containing this project

README

          

## Snake

A classic game, built as reusable react component. Very lightweight, easy to install and get up and running.

Try the demo [here](https://thepetersweeney.com/snake/).

Typescript version available [here](https://github.com/derrmru/react-snake-404).

## Used Technologies and Libraries

- [Create React App](https://github.com/facebook/create-react-app)
- [React](https://reactjs.org/)

## Installation
```
npm i snake-game-react --save
```

## Usage

```
import Snake from 'snake-game-react';

function App() {
return (




);
}

export default App;

```
## Props

To match branding, you can input your preferred color scheme.

Props:

1. color1: string
2. color2: string
3. backgroundColor: string

## Dependencies

React of course.