/xonovex-typescript:react-guidefrom xonovex-typescript
Guides building React 19+ components with server-first patterns, Form Actions, useActionState, useOptimistic, use(), Suspense streaming, and the React Compiler.
Ships in xonovex-typescript. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build React interfaces with focused components, explicit state ownership, and predictable effects.
'use client' only for interactivityuseActionState and FormData instead of controlled inputs<title>, <meta>, <link> anywhere, auto-hoisted to <head>| Feature | React 18 | React 19+ |
|---|---|---|
| Memoization | Manual (useMemo, useCallback) | React Compiler (automatic) |
| Forward refs | forwardRef() wrapper | ref as regular prop |
| Context provider | <Context.Provider value={}> | <Context value={}> |
| Form state | Custom useState | useActionState hook |
| Optimistic updates | Manual state | useOptimistic hook |
| Read promises | Not possible | use() hook |
| Conditional context | Not possible | use(Context) after conditionals |
| Form pending | Manual tracking | useFormStatus hook |
// React 19 Form with Actions
"use client";
import {useActionState} from "react";
function ContactForm() {
const [state, formAction, isPending] = useActionState(
async (prev, formData) => {
const result = await submitForm(Object.fromEntries(formData));
if (result.error) return {error: result.error};
return {success: true};
},
null,
);
return (
<form action={formAction}>
<input name="email" type="email" disabled={isPending} />
<button disabled={isPending}>
{isPending ? "Submitting..." : "Submit"}
</button>
{state?.error && <p className="error">{state.error}</p>}
</form>
);
}
// ref as prop (no forwardRef needed)
function Input({ref, ...props}: {ref?: React.Ref<HTMLInputElement>}) {
return <input ref={ref} {...props} />;
}
// Context as provider
const ThemeContext = createContext("light");
function App({children}) {
return <ThemeContext value="dark">{children}</ThemeContext>;
}
memo(), lazy() code-splitting, Server Components for FCP/SEO, see references/performance-optimization.mduseEffect: captured state from the render that scheduled the effect, not the current state; use refs or include in depsuseMemo/useCallback aren't free. The comparison + bookkeeping costs more than re-running cheap computationsvalue without onChange warns; switching mid-lifetime is silently buggy'use client'; mis-marking causes runtime errors onlySOURCES.md (opens in a new tab)eval-queries.json (opens in a new tab)evals.json (opens in a new tab)moon.yml (opens in a new tab)references/accessibility.md (opens in a new tab)references/activity-effect-event.md (opens in a new tab)references/component-design.md (opens in a new tab)references/hooks.md (opens in a new tab)references/migration-anti-patterns.md (opens in a new tab)references/migration-deprecations.md (opens in a new tab)references/migration-typescript.md (opens in a new tab)references/new-hooks.md (opens in a new tab)references/performance-optimization.md (opens in a new tab)references/react-compiler.md (opens in a new tab)references/server-components.md (opens in a new tab)references/state-management.md (opens in a new tab)references/suspense-streaming.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub xonovex/platform --plugin xonovex-typescript9 skills in this plugin
/astro-guideUse when editing or scaffolding Astro sites with islands architecture. Triggers on `.astro` files, `astro:content` imports, `Astro.props`, `client:` hydration directives, content-collection schemas, and on prompts about pages, layouts, MDX, content collections, image optimization, view transitions, or accessibility in an Astro project, even when the user doesn't say 'Astro'./hono-guideUse when editing or scaffolding Hono 4.0+ API servers in TypeScript. Triggers on `.ts` files with `hono` or `@hono/*` imports, route handlers, middleware, and prompts about validation, error handling, WebSockets, CORS, or building an HTTP API in Hono, even when the user doesn't say 'Hono'./hono-opinionated-guideUse when editing Hono APIs that follow the opinionated style: inline OpenAPI handlers, explicit router selection (LinearRouter / RegExpRouter), sync handlers where possible, bodyLimit middleware. A focused overlay that covers only house-style decisions, not generic Hono usage. Triggers on `.ts` files with `OpenAPIHono`, inline route schemas, and prompts about router perf, payload limits, or sync-vs-async handlers, even when the user doesn't say 'opinionated'./npm-guideUse when publishing an npm package or checking that one is ready to publish. Triggers on prompts about npm publish, publish-readiness or package.json validation (name/version/license/repository/files/publishConfig/private), idempotent publishing (skip if the version already exists), provenance and access flags, dist-tags, or platform-specific (os/cpu/libc) native-binary packages, even when the user doesn't say 'npm'./threejs-guideUse when building or editing 3D scenes in vanilla Three.js for WebGL/WebGPU. Triggers on `.js`/`.ts` files with `three` or `three/*` imports, and on prompts about Scene, Renderer, Mesh, BufferGeometry, materials, lighting, GLTF loaders, raycasting, shaders, post-processing, instancing, or perf tuning, even when the user doesn't say 'Three.js'./typescript-guideUse when editing or reviewing TypeScript in Node.js ESM projects. Triggers on `.ts` files, ESM `package.json`, and prompts about async functions, type inference, strict mode, ESM imports, env handling, template literals, even when the user doesn't say 'TypeScript'.