React Composer
react-composer
Compose render prop components
Utilities
react
render
prop
compose
children
react-composer
Utilities
javascript
npm
frontend
Stars
607
Weekly
1.0M
Open issues
3
Bundle
~25 kB
Installation
npm install react-composerCode example
import { useComposer } from "react-composer";
export function Example() {
const value = useComposer();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by James Smith
- 1.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
- 3 open issues on GitHub