React
@figspec/react
React binding for figspec
Utilities
figma
react
@figspec/react
Utilities
javascript
npm
frontend
open source
ui
library
Stars
3
Weekly
1.7M
Open issues
0
Bundle
~25 kB
Installation
npm install @figspec/reactCode example
import { useReact } from "@figspec/react";
export function Example() {
const value = useReact();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by pockawoooh
- 1.7M 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
- 0 open issues on GitHub