Skip to content

React 19 component and hook patterns for Prowler UI, covering React Compiler rules and modern APIs.

CCM score
74 of 100
skills.sh installs
675
GitHub stars
15.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Server Components by default, "use client" boundaries, the use() hook, and Actions with useActionState
  • Enforces the React Compiler setup in ui/next.config.js by rejecting memo, useMemo, useCallback, and default or namespace react imports
  • Includes react-hook-form guidance: subscribe via useWatch and useFormState because form.watch() and cached formState reads break under the compiler
  • Designed for writing .tsx components and hooks in the Prowler UI codebase, alongside nextjs-16 for App Router work

Install

$ npx -y skills add prowler-cloud/prowler --skill react-19 -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

No Manual Memoization (REQUIRED)

Prowler UI enables the React Compiler (reactCompiler: true in ui/next.config.js), so manual memoization is unnecessary. Lint rejects memo, useMemo, useCallback and default or namespace react imports, and runs the react-hooks compiler rules. For effects, follow no-use-effect.

// ✅ 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

Details

Repository
github.com/prowler-cloud/prowler
Category
Frontend & UI Code
First seen
Jun 3, 2026

More from prowler-cloud/prowler

All 6

Similar to React 19

More Frontend & UI Code