Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/therebelrobot/react-nyan

Add a hidden nyancat/flappy bird game to your React app! :rainbow: :smiley_cat:
https://github.com/therebelrobot/react-nyan

Last synced: 9 days ago
JSON representation

Add a hidden nyancat/flappy bird game to your React app! :rainbow: :smiley_cat:

Awesome Lists containing this project

README

        

# react-nyan

Insert at hidden flappy-bird clone with nyan-cat into your React application!

[Demo](https://therebelrobot.com/react-nyan)

Defaults to binding to Ctrl + Option + Command + Shift + n on Mac (ctrl+alt+win+shift+n on windows). You can override this with the `hotkey` attribute. Valid hotkey combos are pulled from [react-hotkeys](https://github.com/greena13/react-hotkeys#key-combinations--sequences)

## Install

```
npm install --save react-nyan

// or

yarn add react-nyan
```

## Developer Usage

(pretty much the same as the demo page)
```
import React from "react";
import { render } from "react-dom";
import Nyan from "react-nyan";

function Demo() {
return (

Demo (press ctrl+alt+win+shift+n on windows, and ctrl+option+command+shift+n on mac)



Demo with custom hotkey (press ctrl+n)



);
}

render(, document.getElementById("app"));
```

## Credit
This code was modified (with love) from [codepen.io/Shmiddty](https://codepen.io/Shmiddty/pen/ezHJD)

## License
[MIT](https://tldrlegal.com/license/mit-license)