npm install reactfitti
yarn add reactfitti
import React from "react";
import Confetti from "confetti";
const App = () => {
return (
<div>
<Confetti />
</div>
);
};
export default App;
Prop | Type | Optional | Default | Description |
---|---|---|---|---|
colors | string[] | Yes | Random colors for the confetti papers | |
numberOfElements | number | Yes | 250 | Amount of pieces on the view |
MIT © charliesbox