Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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:
- Host: GitHub
- URL: https://github.com/therebelrobot/react-nyan
- Owner: therebelrobot
- License: mit
- Created: 2018-07-26T00:18:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-26T01:30:26.000Z (over 6 years ago)
- Last Synced: 2024-12-08T16:43:13.806Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 169 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)