React Clientside Effect
react-clientside-effect
Create components whose prop changes map to a global side effect
Component Libraries
react
component
side
effect
react-clientside-effect
Component Libraries
javascript
npm
frontend
open source
Stars
0
Weekly
3.0M
Open issues
0
Bundle
~25 kB
Installation
npm install react-clientside-effectCode example
import { Button } from "react-clientside-effect";
export function Example() {
return (
<div className="flex gap-2">
<Button>Primary</Button>
<Button variant="outline">Secondary</Button>
</div>
);
}Pros & cons
Pros
- Actively maintained by Dan Abramov
- 3.0M weekly downloads. Battle tested
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 0 open issues on GitHub