React
@json-render/react
React renderer for @json-render/core. JSON becomes React components.
Component Libraries
json
ui
react
ai
generative-ui
llm
renderer
streaming
components
@json-render/react
Stars
19k
Weekly
1.1M
Open issues
109
Bundle
~25 kB
Installation
npm install @json-render/reactCode example
import { Button } from "@json-render/react";
export function Example() {
return (
<div className="flex gap-2">
<Button>Primary</Button>
<Button variant="outline">Secondary</Button>
</div>
);
}Pros & cons
Pros
- Actively maintained by matt.straka
- 1.1M weekly downloads. Battle tested
- First-class TypeScript definitions
- Apache-2.0 licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 109 open issues on GitHub