UNPKG

react-konami

Version:

A simple component to add an easterEggs in your react web application

20 lines (14 loc) 854 B
# [react-konami](https://flovalence.github.io/react-konami) A simple react component to add easterEggs to your web applications [See demo page](https://flovalence.github.io/react-konami/demo.html) ## How to install `npm install --save react-konami` ## How to use Import the component, render it and you're all set If you use TypeScript the definition is contained in the package. ### Options | Type | Key | Description |------------ |---------------------|--------------------------------------------------------- | (func) | `easterEgg` | what happens when you enter the konami code (required) | (array) | `konami` | you can change the key combination (array of ascii keycodes) (optional) | (number) | `resetDelay` | time you have between keystroke to complete the konami code (optional)