React application

From jordanhubbard/literate-ai · View interactive version

React application is an AI agent skill from the GitHub repository jordanhubbard/literate-ai. React JSX component structure, rendering, and local state as a JavaScript UI-framework Flavor. Use for Literate AI workflow tasks when ui-react is selected. Delta of the front-end parent.

How to use this skill

Skill file

React application generation

This skill is a delta of frontend-application. The ui-react Flavor contributes it

when selected. It does not occupy implementation.language-ecosystem; React is a

UI-framework axis constrained to JavaScript.

Components and keys

Structure the UI as functions that return elements. Give every dynamically toggled

series, table row, or routed view a stable key derived from identity, not array

position. Lift shared selection or sort state only as far as needed; a single view's

state normally lives in one parent and flows down as props.

Rendering and effects

Do not remount an entire tree when the user only toggles display state. Clean up

effects that install timers, subscriptions, or listeners. Isolate loading and error

UI per panel as the front-end parent requires.

Bundling boundary

A bundler is build-system authority. This Flavor assumes the selected build Flavor

can compile JSX or the equivalent. Without package-npm it does not emit npm scripts,

webpack configs, or package.json. With package-npm, follow the javascript-ecosystem

skill and the package Flavor: lockfile-pinned closure, detect-before-install, and

node_modules under OBJ_DIR. Keep generated helpers under source/ role

directories, never source/build/ or node_modules.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.