Choose an emoji and make a rain with it.
npm install --save next-emoji-rain
or
yarn add next-emoji-rain
See more on github.
In _app.js
:
import React from 'react';
import 'next-emoji-rain/dist/index.css';
/* Example _app.js file here: */
export default function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
}
On any page:
import React from 'react';
import { EmojiRain } from 'next-emoji-rain';
export default function Home() {
return (
<div>
<EmojiRain emoji="🚀" />
</div>
);
}
This is a fork of falling-emojis, modified to work with Next.js.
MIT © dnyyy