New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

snake-game-react

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snake-game-react

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

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
2K
-24.99%
Maintainers
1
Weekly downloads
 
Created
Source

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

Try the demo here.

Installation

npm i snake-game-react --save

Usage

import Snake from 'snake-game-react';

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

export default App;


Props

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

Props:

  • color1: string
  • color2: string
  • backgroundColor: string

Dependencies

React of course.

Keywords

react

FAQs

Package last updated on 14 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts