react
Skill by vercel-labs
Renders JSON specs into React component trees with the @json-render/react package. It is for developers building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.
Install react
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vercel-labs/json-render /tmp/json-render && mkdir -p ~/.claude/skills && cp -r /tmp/json-render/skills/react ~/.claude/skills/reactRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vercel-labs/json-render /tmp/json-render && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/json-render/skills/react ~/.gemini/antigravity-cli/skills/reactAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill documents @json-render/react, a React renderer that converts JSON specs into React component trees. It shows how to wrap the Renderer in a JSONUIProvider, define a component catalog with props schemas using defineCatalog, and map component implementations with defineRegistry. Specs use a flat element map where root and children refer to element keys.
The skill also covers named slots, visibility conditions, dynamic prop expressions such as $state, $bindState and $computed, event handling, state watchers, and an optional external StateStore for controlled mode. It is aimed at developers building React UIs from JSON or rendering AI-generated specs.
Written from the project's SKILL.md and checked against it.
What it can do
- Render JSON specsConverts a flat JSON element tree into React components using Renderer inside JSONUIProvider.
- Component catalogsDefines components with props schemas, slots and descriptions using defineCatalog.
- Type-safe registryMaps catalog components to React implementations using defineRegistry.
- Named slotsPlaces content into named slots such as header and footer alongside the default children.
- Visibility conditionsShows or hides elements based on state using $state, $and and $or conditions.
- Dynamic prop expressionsResolves props from state with $state, $bindState, $cond, $template and $computed.
- Two-way bindingBinds form component values to state paths with $bindState and useBoundProp.
- Event systemFires named events with emit or on() and maps them to actions in the element's on field.
- State watchersTriggers actions when watched state values change using the watch field.
- External state storeAccepts a StateStore for controlled mode with tools such as Redux or Zustand.
What you need
- React
- @json-render/react package
- Zod for catalog props schemas
Try asking
- Create a catalog with Button, Card and Layout components for my JSON spec renderer.
- Render this JSON spec with the json-render React Renderer and JSONUIProvider.
- Add an Input bound to /form/email with $bindState in my React spec.
Good to know
- When a StateStore is provided, initialState and onStateChange are ignored.
- Components do not use a statePath prop for two-way binding; use $bindState on the value prop.
- Built-in actions such as setState and pushState are handled by ActionProvider.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/react/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB
Alternatives to react
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
react: common questions
What does @json-render/react do?
It is a React renderer that turns JSON specs into React component trees. It uses a Renderer component and a registry built from a component catalog.
How do I share state between components?
Use StateProvider with JSON Pointer paths, or pass an external StateStore created with createStateStore for controlled mode.
Can I bind a form input to state?
Yes. Use { "$bindState": "/path" } on the natural value prop of the component, and read it in the component with useBoundProp.
How do I install react?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is react free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is react safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to react?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
