Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
prowler-cloud avatar

React 19

  • 657 installs
  • 14.5k repo stars
  • Updated August 4, 2026
  • prowler-cloud/prowler

react-19 is an agent skill that enforces React 19 and React Compiler patterns—skipping manual memoization and legacy imports—so developers who write modern React UI get automatically optimized, compiler-compliant compone

About

react-19 is a prowler-cloud agent skill (version 1.0, Apache-2.0) that teaches AI agents to write React 19 components and hooks compatible with the React Compiler. The skill prohibits manual useMemo, useCallback, and memo wrappers because the compiler handles optimization automatically, and it enforces modern hook patterns including refs passed as props. It auto-invokes when agents write React components in .tsx files and pairs with nextjs-16 for Next.js App Router and Server Actions work. Developers reach for react-19 when migrating to React 19, enabling the React Compiler, or stopping AI from generating legacy memoization boilerplate that fights compiler optimizations.

  • Enforces React Compiler rules by removing all manual useMemo and useCallback calls
  • Requires named imports from React instead of default or namespace imports
  • Mandates Server Components by default with Client Components only when the "use client" directive is present
  • Applies React 19 patterns for refs-as-props, hooks, and Server Actions compatibility
  • Auto-invokes when writing .tsx files in React 19 or Next.js App Router projects

React 19 by the numbers

  • 657 all-time installs (skills.sh)
  • +1 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #530 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/prowler-cloud/prowler --skill react-19

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs657
repo stars14.5k
Security audit3 / 3 scanners passed
Last updatedAugust 4, 2026
Repositoryprowler-cloud/prowler

How do you write React 19 components for the React Compiler?

Generate React 19 components and hooks that fully comply with the React Compiler without manual memoization or legacy import patterns.

Who is it for?

Frontend developers adopting React 19 with the React Compiler who want AI agents to skip legacy memoization and follow current hook conventions.

Skip if: Teams still on React 17 or 18 without the React Compiler, or projects using only Next.js server components without client-side React UI.

When should I use this skill?

User writes or requests React 19 components, hooks, or .tsx files and mentions React Compiler, refs as props, or modern React patterns.

What you get

React Compiler-compliant .tsx components, modern hook patterns, and code free of redundant memoization wrappers.

  • Compiler-compliant React components
  • Modern hook implementations

By the numbers

  • Version 1.0
  • Apache-2.0 license

Files

SKILL.mdMarkdownGitHub ↗

No Manual Memoization (REQUIRED)

// ✅ React Compiler handles optimization automatically
function Component({ items }) {
  const filtered = items.filter(x => x.active);
  const sorted = filtered.sort((a, b) => a.name.localeCompare(b.name));

  const handleClick = (id) => {
    console.log(id);
  };

  return <List items={sorted} onClick={handleClick} />;
}

// ❌ NEVER: Manual memoization
const filtered = useMemo(() => items.filter(x => x.active), [items]);
const handleClick = useCallback((id) => console.log(id), []);

Imports (REQUIRED)

// ✅ ALWAYS: Named imports
import { useState, useEffect, useRef } from "react";

// ❌ NEVER
import React from "react";
import * as React from "react";

Server Components First

// ✅ Server Component (default) - no directive
export default async function Page() {
  const data = await fetchData();
  return <ClientComponent data={data} />;
}

// ✅ Client Component - only when needed
"use client";
export function Interactive() {
  const [state, setState] = useState(false);
  return <button onClick={() => setState(!state)}>Toggle</button>;
}

When to use "use client"

  • useState, useEffect, useRef, useContext
  • Event handlers (onClick, onChange)
  • Browser APIs (window, localStorage)

use() Hook

import { use } from "react";

// Read promises (suspends until resolved)
function Comments({ promise }) {
  const comments = use(promise);
  return comments.map(c => <div key={c.id}>{c.text}</div>);
}

// Conditional context (not possible with useContext!)
function Theme({ showTheme }) {
  if (showTheme) {
    const theme = use(ThemeContext);
    return <div style={{ color: theme.primary }}>Themed</div>;
  }
  return <div>Plain</div>;
}

Actions & useActionState

"use server";
async function submitForm(formData: FormData) {
  await saveToDatabase(formData);
  revalidatePath("/");
}

// With pending state
import { useActionState } from "react";

function Form() {
  const [state, action, isPending] = useActionState(submitForm, null);
  return (
    <form action={action}>
      <button disabled={isPending}>
        {isPending ? "Saving..." : "Save"}
      </button>
    </form>
  );
}

ref as Prop (No forwardRef)

// ✅ React 19: ref is just a prop
function Input({ ref, ...props }) {
  return <input ref={ref} {...props} />;
}

// ❌ Old way (unnecessary now)
const Input = forwardRef((props, ref) => <input ref={ref} {...props} />);

Related skills

How it compares

Pick react-19 over generic React skills when the project runs React 19 with the React Compiler enabled and manual memoization must be avoided.

FAQ

Does react-19 allow useMemo or useCallback?

react-19 explicitly prohibits manual useMemo, useCallback, and memo wrappers because the React Compiler handles optimization automatically. Agents following react-19 write plain derived values and let the compiler memoize.

When should react-19 be combined with nextjs-16?

react-19 covers React 19 component and hook patterns in .tsx files. Combine it with nextjs-16 when the project uses Next.js App Router, Server Actions, or other Next.js 16-specific conventions alongside React 19 UI.

Is React 19 safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.