Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-snake-game

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-snake-game

Snake game that can be embedded in any React app

  • 1.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
44
increased by10%
Maintainers
1
Weekly downloads
 
Created
Source

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'));

Keywords

FAQs

Package last updated on 02 Feb 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc