Hey there, You are most welcome to this article. I hope you will enjoy this article. If you like this article then please share this article with your friends and colleagues. If you have any questions or suggestions regarding this article then please comment down below.
React.js Confetti Button using canvas confetti
For full source code visit : https://freecodez.com/post/adxvhcp
// https://freecodez.com
const ConfettiButton = (props) => {
const handleClick = (e) => {
e.preventDefault();
confetti({
particleCount: 150,
spread: 60
});
}
return (
<div>
<button onClick={handleClick}>{props.txt}</button>
</div>
);
};
Source Code : https://freecodez.com/post/adxvhcp
For more such articles visit : https://freecodez.com
Top comments (0)