Skip to content
Back to skills

React Knowledge Patch

ASecurity

React

  • 25 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
developmentrustshellreactnodeapisecurityperformancedocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill react-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of React Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for React Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-react-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-react-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: react-knowledge-patch
description: React
version: "19.2.0"
license: MIT
metadata:
  author: Nevaberry
---


# React Knowledge Patch

Load this skill for React migration, Server Components security, server rendering,
Activity and Effects, View Transitions, compiler and lint configuration, or React
Native and legacy JSX compatibility work. Use the references for complete guidance
and examples; the quick reference below highlights upgrade checks and API behavior.

## Reference index

| Reference | Topics |
| --- | --- |
| [React 19 Migration and Compatibility](references/react-19-migration.md) | Containers, refs, package and add-on migrations, DOM attributes, forms, events, content security |
| [React Server Components Security](references/security.md) | Affected packages, patch scope, framework and bundler upgrade paths |
| [Compiler and Hooks Lint](references/compiler-and-lint.md) | ESLint presets, compiler diagnostics, dependencies, setup, exact version pins |
| [Activity and Effect Events](references/activity-and-effects.md) | Hidden DOM, pre-rendering, hydration, Effect Event identity, Strict Mode, independent transitions |
| [Server Rendering and Cache Lifetimes](references/server-rendering.md) | Cache cancellation, prerender/resume, browser handoff, streaming, resources, hydration, Server Components transport |
| [View Transitions](references/view-transitions.md) | Channel availability, activation, boundaries, shared elements, classes, cleanup, routing |
| [Tooling and Platforms](references/tooling-and-platforms.md) | Performance diagnostics, React Native, legacy JSX tools, release lookup, documentation archives |

## Breaking changes and upgrade checks

### Server Components security

CVE-2025-55182 allows unauthenticated remote code execution in versions `19.0.0`,
`19.1.0`, `19.1.1`, and `19.2.0` of `react-server-dom-webpack`,
`react-server-dom-parcel`, and `react-server-dom-turbopack`. Audit server deployments
with RSC support even if the app defines no Server Functions or the framework
supplies the affected package.

Versions `19.0.1`, `19.1.2`, and `19.2.1` fixed the original RCE. Updated guidance
also covers denial of service and source exposure. Upgrade the installed integration
to a current patched release even if your hosting provider has applied a mitigation.
See the security reference for the individual CVEs and framework upgrade paths.

### Server Action data and private bundler imports

React 19.0.6, 19.1.7, and 19.2.6 can drop entries from `FormData` received by a
Server Action. The fixes are in 19.0.7, 19.1.8, and 19.2.7, respectively.

React 19.1.3 and 19.2.2 remove `react-server-dom-webpack/*.unbundled` imports and
move their implementation to the private `react-server-dom-unbundled` package.
Use the supported entry point for your bundler and runtime when updating an integration.

### Containers, custom renderers, and tests

React DOM 19.1 removes HTML comment containers. If an integration mounts at a
comment marker, give it an element container at that location. React DOM 19.2 warns
when a React-owned node containing text is used as a render container; use a
dedicated empty element for the container.

React 19.2 reorders the positional parameters after the `on*` callbacks in
`react-reconciler`'s `createContainer` and `createHydrationContainer`. Check the
argument order at both call sites when upgrading a custom renderer.

React 19.1 removes `act` from production exports. Use a development build of React
for test code that imports `act`.

### Lint presets and compiler upgrades

Hooks ESLint v6 uses flat config for `recommended`; existing eslintrc projects can
keep the legacy configuration with `recommended-legacy`.

```json
{
  "extends": ["plugin:react-hooks/recommended-legacy"]
}
```

Replace `eslint-plugin-react-compiler` with an updated `eslint-plugin-react-hooks`.
Its `recommended` and `recommended-latest` presets include compiler diagnostics
and can run without `babel-plugin-react-compiler` installed.

A compiler upgrade can change the identity of memoized values and therefore when
Effects that depend on them run. If test coverage is limited, pin the compiler to
an exact version and check the app when upgrading it manually.

### Platform and legacy migrations

Migrate apps running on the Legacy Architecture before upgrading to React Native
0.82, which runs exclusively on the New Architecture. A standalone React Native
app without `react-dom` can keep its pinned `react` version. In a React Native
monorepo, patch only the installed affected `react-server-dom-*` packages to
preserve React Native's version pairing.

React 15 removes the top-level `React` aliases for APIs moved to `react-dom` and
`react-dom/server` in 0.14, and removes the CommonJS `react/addons` entry point.
Use individual `react-addons-*` packages for those add-ons. The migration and
tooling references retain the detailed legacy DOM, refs, JSX, and build guidance.

## Activity and Effect Events

### Pre-rendering, hydration, and retained DOM

An initially hidden `<Activity>` can pre-render lazy components and warm
Suspense-enabled data on the client. Fetches started in Effects wait until the
boundary becomes visible. Server HTML omits hidden boundary children. Even an
always-visible Activity lets React hydrate its children separately and prioritize
them when a user interacts.

A hidden Activity containing only bare text produces no DOM output. Retained
elements such as `<video>` can keep playing after hiding; use a layout Effect
cleanup when playback needs to stop as the UI hides.

In React 19.3, hiding Activity hides its portals, prevents metadata hoisting from
its subtree, and keeps render errors inside the hidden boundary from reaching the
visible UI. React 19.3 also adds Activity support to the Server Components renderer.

### Effect Event identity and calls

`useEffectEvent` returns a new function identity on every render, so omit it from
dependency arrays. Keep calls local to the defining component or custom Hook,
inside `useEffect`, `useLayoutEffect`, `useInsertionEffect`, or another Effect
Event. An Effect can register a listener that calls the event later and reads the
latest committed values.

### Effect replay and conditional reads

Strict Mode replays Effects in development during hydration and after Fast Refresh.
Moving an already-mounted child by itself now preserves its Effects.

React warns in development when a suspended component appears to unblock by
skipping a conditional `use()` call. Keep the read on any branch where rendering
needs to wait for that value.

## Server rendering and cache lifetimes

### Cache cancellation and partial prerendering

`cacheSignal()` returns a signal tied to the Server Components cache. It aborts
when rendering finishes successfully, is aborted, or fails, so cached work can
release resources as soon as the render stops using them.

Pass an abort signal to `prerender` to capture a static `prelude` and any `postponed`
state. Serve the prelude as the shell, then pass the same tree and saved state to
`resume` to stream deferred content. The server rendering reference includes the
Web Stream and Node stream entry points and examples.

### Browser handoff and streaming behavior

Call `use(browser())` inside `<Suspense>` to render its fallback on the server and
run the gated component in the browser. React treats this handoff as intentional;
`react-dom/server` exposes an optional `onBrowserBailout` callback to observe it.

React briefly batches nearby server-rendered Suspense reveals so several fallbacks
can be replaced together. It can reveal content immediately as page load approaches
the 2.5-second Largest Contentful Paint threshold. When a dehydrated Suspense
boundary suspends again, React hides its server-rendered content until it resolves.

Node.js supports `renderToReadableStream` and `prerender` alongside the Web Stream
resume APIs. Configure compression explicitly when serving compressed Web Stream
responses. `renderToPipeableStream` skips `onAllReady` when rendering the shell
fails; handle that case in `onShellError` when waiting for all content before piping.

### Resources and hydration

React groups stylesheet links in `<head>` by `precedence`, ordering groups by
first appearance. It waits for external stylesheets before revealing dependent
content, even when a stylesheet is discovered after server streaming has begun.

React emits external async scripts in `<head>` during server rendering and loads
and executes a script once when multiple components render that script. Hydration
skips unexpected tags in `<head>` and `<body>`. If a separate mismatch forces a
full-document re-render, React preserves stylesheets inserted by third-party
scripts and browser extensions.

## View Transitions and Fragment refs

### Availability and activation

React 19.3.0 makes `<ViewTransition>`, `addTransitionType`, and `ref` on an explicit
`<Fragment>` available in the stable release. The references also retain the
Canary guidance for these APIs.

In React DOM apps using Canary or Experimental, React calls `document.startViewTransition()`
for eligible commits from `startTransition`, `useDeferredValue`, or a Suspense
reveal. An urgent update alone leaves the boundary inactive; `flushSync` during
the transition can make React skip the animation.

### Boundaries, pairing, and cleanup

Put a View Transition boundary above the first DOM node in an inserted or removed
subtree for `enter` or `exit`. For list reorders, preserve stable keys and put
boundaries above the list items' DOM wrappers so movement can trigger `update`.

Pair shared elements with the same `name` on boundaries replacing each other in
one commit, keeping the name unique among mounted boundaries across the app.
A Suspense fallback separating the commits, or either side outside the viewport,
prevents pairing.

`onEnter`, `onExit`, `onUpdate`, and `onShare` receive `(instance, types)` and can
return cleanup to cancel animations when the transition ends or is interrupted.
If pending navigation waits on React, release it in `useLayoutEffect`. React skips
animations for legacy `popstate` updates; use the Navigation API for animated back
navigation. See the View Transitions reference for classes, types, and examples.

## DOM integration and diagnostics

For custom elements, server rendering emits strings, numbers, and `true` as
attributes and omits `false` and values such as objects, symbols, and functions.
Client rendering assigns a prop to an existing property and otherwise uses an attribute.

With a Trusted Types CSP, you can pass a policy's `TrustedHTML` value directly as
`dangerouslySetInnerHTML={{ __html: trustedHtml }}`. Hoistable `<style>` elements
accept a `nonce` prop. Server-rendered import maps carry the renderer's CSP nonce.

Read `event.submitter` in `onSubmit` to identify the submitting control. When React
constructs `FormData` for an Action, a named submit button contributes its value.
A form's `onReset` now runs when React automatically resets it after a successful Action.

In Chrome DevTools' Performance panel, the Scheduler track distinguishes an update
waiting on work of another priority from React waiting for paint. A `Blocked`
entry in the Components track means rendering yielded to work outside React.

Files in this skill

  • SKILL.md8.2 KB
  • coverage.json1.3 KB
  • references/activity-and-effects.md2.3 KB
  • references/compiler-and-lint.md1.7 KB
  • references/react-19-migration.md1.1 KB
  • references/security.md2.3 KB
  • references/server-rendering.md2.3 KB
  • references/tooling-and-platforms.md1.6 KB
  • references/view-transitions.md2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.