Connects konami-code-js to emojisplosion for a glorious easter egg.
npm install konamimojisplosion
!TypeScript: Strict

> ⬆ ⬆ ⬇ ⬇ ⬅ ➡ ⬅ ➡ 🅱 🅰
>
> 🎉 ✨ 🎆
Hooks konami-code-js to trigger emojisplosion.
If a user types in the Konami Code on their keyboard or taps it on their mobile phone, emojisplosions will start firing on the page.
Triggering the Konami Code again will stop the emojisplosions.
> Check it out on Codecademy Docs!
Plop this 👇 at the end of your :
``html`
Alternately, you can import and use this as a standalone function, a React hook, or a React class component.
`tsx
import { initializeKonamimojisplosion } from "konamimojisplosion";
initializeKonamimojisplosion();
`
`tsx
import { useKonamimojisplosion } from "konamimojisplosion";
function MyComponent() {
useKonamimojisplosion();
return
}
`
> Tip: the class component just calls the hook internally.
`tsx
import { Konamimojisplosion } from "konamimojisplosion";
class MyComponent {
render() {
return (
Hello, world!
);
}
}
`
Requires:
After forking the repo from GitHub:
`shell`
git clone https://github.com/
cd konamimojisplosion
yarn
We'd love to have you contribute!
Check the issue tracker for issues labeled accepting prs to find bug fixes and feature requests the community can work on.
If this is your first time working with this code, the good first issue` label indicates good introductory issues.
Please note that this project is released with a Contributor Covenant.
By participating in this project you agree to abide by its terms.
See CODE_OF_CONDUCT.md.