dhpk-react-19-notes

dhpk-react-19-notes is a skill for Claude Code from hmj1026/dhpk. It costs 90 tokens per session (1,478 once invoked), scanned A, original, MIT.

A reference guide for React 19, the JavaScript library used to build user interfaces. It covers React 19 features, changes from React 18, and how React relates to Server Components and Next.js.

In plain words
What is it for?
Use it when adding Actions, form actions, new hooks, refs, providers, or Server Components, or when upgrading an application from React 18 to React 19.
Why use it?
It helps avoid migration mistakes and keeps React 19 advice separate from ordinary application code and older React versions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dhpk plugin — 65 skills, 31 commands, 37 agents, 4 hooks shipped together

Good fit Use it when adding Actions, form actions, new hooks, refs, providers, or Server Components, or when upgrading an application from React 18 to React 19.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hmj1026/dhpk/dhpk-react-19-notes
View source ↗ hmj1026/dhpk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hmj1026/dhpk --skill dhpk-react-19-notes
Clone the repo
git clone --depth 1 https://github.com/hmj1026/dhpk

Made for: Claude Code.

Or install dhpk, the plugin that ships this one along with the rest of its 65 skills, 31 commands, 37 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dhpk-react-19-notes

README.md
[![agentmods](https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-react-19-notes.svg)](https://agentmods.dev/skills/hmj1026/dhpk/dhpk-react-19-notes)
Your own site
<a href="https://agentmods.dev/skills/hmj1026/dhpk/dhpk-react-19-notes"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-react-19-notes.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,478 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.01478
Opus 5 $0.00045 $0.00739
Sonnet 5 $0.00018 $0.00296
Haiku 4.5 $0.00009 $0.00148

Measured 3d ago against content hash 769d454675d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

dhpk-react-19-notes scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

generated/claude-profiles/compat-v1/package/skills/dhpk-react-19-notes/SKILL.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React 19 — current stable major

React 19 (December 2024) centers on Actions (async transitions for data mutations) and a batch of ergonomics that remove long-standing boilerplate.

Family routing and the React/Next compatibility matrix live in docs/agent-guidance/frontend-framework-routing.md. This module owns standalone React 19 language guidance after the family is selected.


Signature features

Actions + form actions

"Actions" are async transitions that handle pending state, errors, and optimistic updates. Pass an async function to a <form action={...}>:

function ChangeName() {
  const [error, submitAction, isPending] = useActionState(
    async (prev, formData) => {
      const error = await updateName(formData.get('name'))
      if (error) return error
      redirect('/path')
      return null
    },
    null,
  )
  return (
    <form action={submitAction}>
      <input name="name" />
      <button disabled={isPending}>Update</button>
      {error && <p>{error}</p>}
    </form>
  )
}

New hooks

  • useActionState(fn, initial) -> [state, dispatchAction, isPending].
  • useOptimistic(value) -> show an optimistic value while an action is pending.
  • useFormStatus() (from react-dom) -> read the enclosing form's pending state without prop-drilling.
  • use(resource) — read a Promise or Context; unlike other hooks it may be called conditionally / inside loops.

ref as a prop

Function components receive ref as a normal prop — forwardRef is no longer needed (and is deprecated):

function MyInput({ placeholder, ref }) {
  return <input placeholder={placeholder} ref={ref} />
}
<MyInput ref={ref} />

Ref callbacks may also return a cleanup function.

<Context> as a provider

Render <Context> directly instead of <Context.Provider>:

const Theme = createContext('')
// React 19
<Theme value="dark">...</Theme>
// was: <Theme.Provider value="dark">...</Theme.Provider>

Document metadata + asset loading

Read the full file on GitHub · 182 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 182 lines · 90 tokens per session scan A 769d454675d5

Subscribe to this mod's changes

dhpk-react-19-notes is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed today), licensed MIT. It adds 90 tokens to every session and 1,478 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

genpage

Creates, updates, and deploys Power Apps generative pages for model-driven apps using React v17, TypeScript, and Fluent UI V9. Orchestrates specialist agents for planning, entity creation, and code generation. Use it when user asks to build, retrieve, or update a page in an existing Microsoft Power Apps model-driven…

microsoft/power-platform-skills · 140 tokens

create-code-app

Creates Power Apps code apps using React and Vite. Use when building code apps, scaffolding projects, or deploying to Power Platform.

microsoft/power-platform-skills · 31 tokens

aceternity-ui

100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or encountering animation, shadcn CLI integration errors.

secondsky/claude-skills · 48 tokens

cloudflare-nextjs

Deploy Next.js to Cloudflare Workers via the OpenNext adapter (@opennextjs/cloudflare). Use for SSR/ISR/SSG/App or Pages Router, getCloudflareContext, bindings (D1/R2/KV/AI/Hyperdrive), caching tiers, skew protection, multi-worker, custom worker, env vars, or worker…

secondsky/claude-skills · 89 tokens

auto-animate

AutoAnimate (@formkit/auto-animate) zero-config animations for React. Use for list transitions, accordions, toasts, or encountering SSR errors, animation libraries complexity.

secondsky/claude-skills · 40 tokens