
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
react-dom
Advanced tools
react-domThis package serves as the entry point to the DOM and server renderers for React. It is intended to be paired with the generic React package, which is shipped as react to npm.
npm install react react-dom
import { createRoot } from 'react-dom/client';
function App() {
return <div>Hello World</div>;
}
const root = createRoot(document.getElementById('root'));
root.render(<App />);
import { renderToPipeableStream } from 'react-dom/server';
function App() {
return <div>Hello World</div>;
}
function handleRequest(res) {
// ... in your server handler ...
const stream = renderToPipeableStream(<App />, {
onShellReady() {
res.statusCode = 200;
res.setHeader('Content-type', 'text/html');
stream.pipe(res);
},
// ...
});
}
react-domSee https://react.dev/reference/react-dom
react-dom/clientSee https://react.dev/reference/react-dom/client
react-dom/server19.2.0 (October 1st, 2025)
Below is a list of all new features, APIs, and bug fixes.
Read the React 19.2 release post for more information.
<Activity>: A new API to hide and restore the UI and internal state of its children.useEffectEvent is a React Hook that lets you extract non-reactive logic into an Effect Event.cacheSignal (for RSCs) lets your know when the cache() lifetime is over.resume: to resume a prerender to a stream.resumeAndPrerender: to resume a prerender to HTML.resumeToPipeableStream: to resume a prerender to a stream.resumeAndPrerenderToNodeStream: to resume a prerender to HTML.prerender APIs to return a postponed state that can be passed to the resume APIs.<ViewTransition> Component. React will batch as much reveals as possible before the first paint while trying to hit popular first-contentful paint metrics.prerender, renderToReadableStream) to server-side-rendering APIs for Node.js: IDs generated by useId<Activity /> was developed over many years, starting before ClassComponent.setState (@acdlite @sebmarkbage and many others)%o placeholder (@eps1lon #34198)useDeferredValue loop in popstate event (@acdlite #32821)useDeferredValue (@acdlite #34376)cacheSignal (@sebmarkbage #33557): for IDs generated by useId (@sebmarkbage, @eps1lon: #32001, https://github.com/facebook/react/pull/33342#33099, #33422)nonce to be used on hoistable styles (@Andarist #32461)React.use inside React.lazy-ed Component (@hi-ogawa #33941)progressiveChunkSize option for server-side-rendering APIs (@sebmarkbage #33027)<img> and <link> using hints before they're rendered (@sebmarkbage #34604)filterStackFrame (@eps1lon #33707)on* handlers to account for upcoming experimental APIsPreact is a fast 3kB alternative to React with the same modern API. It provides similar functionalities for rendering UIs but with a smaller footprint, making it a good choice for performance-sensitive applications.
Inferno is an extremely fast, React-like library for building high-performance user interfaces on both the client and server. It offers a similar component-based UI building experience but focuses on performance optimizations.
This package is part of the Vue ecosystem and provides server-side rendering capabilities similar to react-dom/server. It's used to render Vue components on the server and send the static markup to the client.
FAQs
React package for working with the DOM.
The npm package react-dom receives a total of 38,837,444 weekly downloads. As such, react-dom popularity was classified as popular.
We found that react-dom demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.