Registry / web-framework / react-dom-server

react-dom-server

JSON →
library0.0.5jsnpmunverified

This `react-dom-server` package, last published at version `0.0.5` in February 2016, represents an extremely early and now entirely abandoned attempt at providing server-side rendering capabilities for React applications. It predates the official `react-dom` package's `react-dom/server` entry point, which became the standard for server rendering. The package was designed for use with very old React versions (e.g., `0.14.x`) and offers no modern features or compatibility. It lacks a README, indicating it was likely an internal experiment or a placeholder that was quickly superseded. Developers should use `react-dom/server` from the official `react-dom` package for any server-side rendering needs, as this specific `react-dom-server` package is not maintained, secure, or functional with contemporary React versions. There is no active release cadence, and it has zero downloads in recent times.

npm install react-dom-server
INSTALL
IMPORT
SIG · REACT-DOM-SERVER
R
react-dom-server
web-frameworkjavascriptv0.0.5
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ReactDOMServer
const ReactDOMServer = require('react-dom-server');
import ReactDOMServer from 'react-dom-server';
This package is CommonJS-only (published 2016) and incompatible with modern ES Modules. It exports a single object containing rendering methods.
renderToString
const ReactDOMServer = require('react-dom-server'); const html = ReactDOMServer.renderToString(<App />);
import { renderToString } from 'react-dom-server';
A method of the main `ReactDOMServer` export, not a named export. Used for initial HTML rendering.
renderToStaticMarkup
const ReactDOMServer = require('react-dom-server'); const staticHtml = ReactDOMServer.renderToStaticMarkup(<StaticPage />);
import { renderToStaticMarkup } from 'react-dom-server';
A method of the main `ReactDOMServer` export. Used for static HTML without React-specific attributes.

This example demonstrates how `react-dom-server` (an old, abandoned package) would have been used to render React components to HTML strings on the server. It illustrates both `renderToString` and `renderToStaticMarkup` methods for an extremely old React version (0.14.x) using CommonJS modules.

const React = require('react'); const ReactDOMServer = require('react-dom-server'); function App() { return React.createElement('div', null, `Hello from server-side React ${React.version}`); } const html = ReactDOMServer.renderToString(React.createElement(App)); console.log(html); // Expected output: <div data-reactroot="" data-reactid="1">Hello from server-side React 0.14.7</div> // For a static site, without React-specific attributes: function StaticPage() { return React.createElement('h1', null, 'This is a static page'); } const staticHtml = ReactDOMServer.renderToStaticMarkup(React.createElement(StaticPage)); console.log(staticHtml); // Expected output: <h1>This is a static page</h1>
Debug
Known issues
breakingThis `react-dom-server` package is completely abandoned and incompatible with modern React versions (>=15). Attempting to use it will lead to dependency conflicts, runtime errors, and unexpected behavior.
fix
Do not use this package. Migrate all server-side rendering logic to use `react-dom/server` from the official, actively maintained `react-dom` package.
affects: >=0.0.5
gotchaThe package name `react-dom-server` is confusingly similar to the official `react-dom/server` module. Ensure you are importing from the correct, actively maintained package from the `react-dom` npm package.
fix
Always use `import ReactDOMServer from 'react-dom/server';` (or `require('react-dom/server')` for CommonJS) from the `react-dom` package, not the separate `react-dom-server` package.
affects: >=0.0.5
breakingThis package has not received security updates since its last publication in February 2016. Using it poses significant security risks due to unpatched vulnerabilities and outdated dependencies.
fix
Immediately cease use of this abandoned package. Switch to `react-dom/server` for secure and maintained server-side rendering capabilities.
affects: >=0.0.5
deprecatedThe `renderToString` and `renderToStaticMarkup` APIs, while available in this package, are considered legacy methods in modern React. Newer `react-dom/server` offers streaming APIs like `renderToPipeableStream` and `renderToReadableStream` for better performance and integration with React Suspense.
fix
When migrating to modern React SSR, prefer `renderToPipeableStream` or `renderToReadableStream` from `react-dom/server` for enhanced capabilities.
affects: >=0.0.5
Errors
Common errors & fixes
Error: Cannot find module 'react-dom-server'
The abandoned `react-dom-server` package is either not installed, or the import path is incorrect. Most likely, it should not be used at all.
fix
Do not install or use this legacy package. Instead, install the `react-dom` package (`npm install react-dom`) and import server-side rendering utilities from `react-dom/server`.
Error: Invariant Violation: Minified React error #XXX; visit https://reactjs.org/docs/error-decoder.html?invariant=XXX for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
This error occurs when attempting to use the extremely old `react-dom-server` package (designed for React 0.14.x) with a modern version of React. Their API shapes and internal mechanisms are fundamentally incompatible.
fix
This package is not compatible with modern React. Remove `react-dom-server` from your dependencies and implement server-side rendering using `react-dom/server` from your installed `react-dom` package.
Upgrade
Version history
0.0.5latest on npm
Audit
Dependencies
fbjsrequiredInternal Facebook utility library, common in early React ecosystem.
reactrequiredCore React library for UI components; specific to very old versions (e.g., 0.14.x).
react-childrenrequiredHelper for React.Children utilities, common in early React.
react-universalrequiredLikely an early attempt at isomorphic component rendering, specific to very old React.
Agent activity
4 hits · last 30 days
node
4
Resources