1 minute to read
How to Add Confetti to Your React App
First Create the Confetti Animation
Step 0: Create a custom Confetti animation and generate the code to install on your website by visiting ConfettiPage.com.
Play confetti example
Step 1: Click the black button that says โCopy Codeโ.
Step 2: On React go to the desired page you want the confetti to be in.
Then Install the Confetti Code on your Chosen Page
Step 3: Install the confetti code (script tag) into your index.html
file.
Step 4. Play the confetti anywhere in your app by calling
window.ConfettiPage.play()
Optional: Remove the Watermark
If you are using the free version, you will see the โConfettiPage.comโ branding appear at the bottom left.
If you would like it removed, simply upgrade for a license to use it without the ConfettiPage branding.