1.0.9 • Published 7 years ago

react-snake-game v1.0.9

Weekly downloads
7
License
MIT
Repository
-
Last release
7 years ago

react-snake-game

NPM version Downloads David GitHub issues license GitHub stars

NPM

React Snake Game

A React component for embedding a game of snake into your app. The game board auto-scales to the size of it's parent element.

Demo

See the demo here!

Usage

You can install through npm:

npm install --save react-snake-game
import React    from 'react';
import ReactDOM from 'react-dom';
import Snake    from 'react-snake-game';

const WRAPPER_STYLE = {
    margin : '30px auto',
    height : 700,
    width  : 700
};

const App = () => (
	<div style={WRAPPER_STYLE}>
        <Snake sound={true} />
	</div>
);

ReactDOM.render(<App />, document.getElementById('root'));
1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago