React
@neoconfetti/react
Confetti explosion in React ππ
Forms
confetti
party
fun
badass
badassery
svelte
sveltekit
small
tiny
performant
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB
Installation
npm install @neoconfetti/reactCode example
import { useReact } from "@neoconfetti/react";
export function Example() {
const form = useReact({ defaultValues: { email: "" } });
function onSubmit(event: React.FormEvent<HTMLFormElement>) {
event.preventDefault();
console.log(form);
}
return (
<form onSubmit={onSubmit}>
<input name="email" type="email" placeholder="you@example.com" />
<button type="submit">Submit</button>
</form>
);
}Pros & cons
Pros
- Actively maintained by Puru Vijay
- 0 weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Not supported in React Native
- 0 open issues on GitHub