Snake

With React JS

Score: 0

Repository: JS version | Typescript version

Available on NPM here.

Description:

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

Installation:

 npm i snake-game-react --save

Usage:

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

 const App = () => {
 return (
    <div className="App">
    <Snake
        color1="#248ec2"
        color2="#1d355e"
        backgroundColor="#ebebeb"
        />
    </div>
  );
  }

 export default App;

Props:

color1
string
color2
string
backgroundColor
string