React
@unpic/react
React component for responsive, high-performance images
Utilities
images
react
@unpic/react
Utilities
javascript
npm
frontend
open source
ui
library
Stars
2.1k
Weekly
1.3M
Open issues
50
Bundle
~25 kB
Installation
npm install @unpic/reactCode example
import { useReact } from "@unpic/react";
export function Example() {
const value = useReact();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by ascorbic
- 1.3M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 50 open issues on GitHub