{"id":13861,"library":"react-dom-server","title":"Legacy React DOM Server (Pre-React 15)","description":"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.","status":"abandoned","version":"0.0.5","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install react-dom-server","lang":"bash","label":"npm"},{"cmd":"yarn add react-dom-server","lang":"bash","label":"yarn"},{"cmd":"pnpm add react-dom-server","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Internal Facebook utility library, common in early React ecosystem.","package":"fbjs","optional":false},{"reason":"Core React library for UI components; specific to very old versions (e.g., 0.14.x).","package":"react","optional":false},{"reason":"Helper for React.Children utilities, common in early React.","package":"react-children","optional":false},{"reason":"Likely an early attempt at isomorphic component rendering, specific to very old React.","package":"react-universal","optional":false}],"imports":[{"note":"This package is CommonJS-only (published 2016) and incompatible with modern ES Modules. It exports a single object containing rendering methods.","wrong":"import ReactDOMServer from 'react-dom-server';","symbol":"ReactDOMServer","correct":"const ReactDOMServer = require('react-dom-server');"},{"note":"A method of the main `ReactDOMServer` export, not a named export. Used for initial HTML rendering.","wrong":"import { renderToString } from 'react-dom-server';","symbol":"renderToString","correct":"const ReactDOMServer = require('react-dom-server');\nconst html = ReactDOMServer.renderToString(<App />);"},{"note":"A method of the main `ReactDOMServer` export. Used for static HTML without React-specific attributes.","wrong":"import { renderToStaticMarkup } from 'react-dom-server';","symbol":"renderToStaticMarkup","correct":"const ReactDOMServer = require('react-dom-server');\nconst staticHtml = ReactDOMServer.renderToStaticMarkup(<StaticPage />);"}],"quickstart":{"code":"const React = require('react');\nconst ReactDOMServer = require('react-dom-server');\n\nfunction App() {\n  return React.createElement('div', null, `Hello from server-side React ${React.version}`);\n}\n\nconst html = ReactDOMServer.renderToString(React.createElement(App));\n\nconsole.log(html);\n// Expected output: <div data-reactroot=\"\" data-reactid=\"1\">Hello from server-side React 0.14.7</div>\n\n// For a static site, without React-specific attributes:\nfunction StaticPage() {\n  return React.createElement('h1', null, 'This is a static page');\n}\n\nconst staticHtml = ReactDOMServer.renderToStaticMarkup(React.createElement(StaticPage));\nconsole.log(staticHtml);\n// Expected output: <h1>This is a static page</h1>","lang":"javascript","description":"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."},"warnings":[{"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.","message":"This `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.","severity":"breaking","affected_versions":">=0.0.5"},{"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.","message":"The 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.","severity":"gotcha","affected_versions":">=0.0.5"},{"fix":"Immediately cease use of this abandoned package. Switch to `react-dom/server` for secure and maintained server-side rendering capabilities.","message":"This 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.","severity":"breaking","affected_versions":">=0.0.5"},{"fix":"When migrating to modern React SSR, prefer `renderToPipeableStream` or `renderToReadableStream` from `react-dom/server` for enhanced capabilities.","message":"The `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.","severity":"deprecated","affected_versions":">=0.0.5"}],"env_vars":null,"search_vec":"'/server':54,109 '0.0.5':19 '0.14':76 '15':8 '2016':22 'abandon':30 'activ':145 'applic':41 'attempt':31 'becam':58 'cadenc':147 'capabl':38 'compat':84 'contemporari':139 'design':67 'develop':103 'dom':3,12,48,53,108,115,129 'download':152 'e.g':75 'earli':26 'entir':29 'entri':55 'experi':95 'extrem':25 'featur':82 'februari':21 'function':137 'indic':89 'intern':94 'javascript':156 'lack':86 'last':15 'legaci':1 'like':92 'maintain':134 'modern':81 'need':123 'offer':79 'offici':45,112 'old':72 'packag':14,49,65,116,131 'placehold':98 'point':56 'pre':6 'pre-react':5 'predat':43 'provid':33 'publish':16 'quick':101 'react':2,7,11,40,47,52,73,107,114,128,140 'react-dom':46,51,106,113 'react-dom-serv':10,127 'readm':88 'recent':154 'releas':146 'render':37,63,122 'repres':23 'secur':135 'server':4,13,35,62,120,130 'server-sid':34,119 'side':36,121 'specif':126 'standard':60 'supersed':102 'time':155 'use':69,105 'version':18,74,141 'x':77 'zero':151","created_at":"2026-04-20T01:56:41.722023+00:00","updated_at":"2026-04-20T01:56:41.722023+00:00","problems":[{"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`.","cause":"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.","error":"Error: Cannot find module 'react-dom-server'"},{"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.","cause":"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.","error":"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."}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-dom-server","openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-18","install_tag":null}}