react-dom

React package for working with the DOM.

This version of react-dom/server contains a minor vulnerability. Please update react-dom to 16.3.3 or 16.4.2+. Learn more: https://fb.me/cve-2018-6341
Last updated 2 years ago by brianvaughn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-dom 
SYNC missed versions from official npm registry.

react-dom

This 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.

Installation

npm install react react-dom

Usage

In the browser

var React = require('react');
var ReactDOM = require('react-dom');

class MyComponent extends React.Component {
  render() {
    return <div>Hello World</div>;
  }
}

ReactDOM.render(<MyComponent />, node);

On the server

var React = require('react');
var ReactDOMServer = require('react-dom/server');

class MyComponent extends React.Component {
  render() {
    return <div>Hello World</div>;
  }
}

ReactDOMServer.renderToString(<MyComponent />);

API

react-dom

  • findDOMNode
  • render
  • unmountComponentAtNode

react-dom/server

  • renderToString
  • renderToStaticMarkup

Current Tags

  • 0.0.0-57333ca33                                ...           canary (4 months ago)
  • 0.0.0-experimental-33c3af284                                ...           experimental (24 days ago)
  • 16.13.1                                ...           latest (2 months ago)
  • 0.0.0-33c3af284                                ...           next (24 days ago)
  • 16.3.3                                ...           tmp (2 years ago)
  • 0.0.0-da834083c                                ...           unstable (2 months ago)

227 Versions

  • 0.0.0-experimental-33c3af284                                ...           24 days ago
  • 0.0.0-33c3af284                                ...           24 days ago
  • 0.0.0-experimental-e5d06e34b                                ...           2 months ago
  • 0.0.0-experimental-d7382b6c4                                ...           2 months ago
  • 0.0.0-d7382b6c4                                ...           2 months ago
  • 16.13.1                                ...           2 months ago
  • 0.0.0-da834083c                                ...           2 months ago
  • 0.0.0-experimental-aae83a4b9                                ...           2 months ago
  • 0.0.0-experimental-8b155d261                                ...           3 months ago
  • 0.0.0-235a6c4af                                ...           3 months ago
  • 0.0.0-experimental-235a6c4af                                ...           3 months ago
  • 0.0.0-experimental-355970aa4                                ...           3 months ago
  • 16.13.0                                ...           3 months ago
  • 0.0.0-experimental-d28bd2994                                ...           3 months ago
  • 0.0.0-d28bd2994                                ...           3 months ago
  • 0.0.0-experimental-8d7535e54                                ...           3 months ago
  • 0.0.0-8d7535e54                                ...           3 months ago
  • 0.0.0-5de5b6150                                ...           3 months ago
  • 0.0.0-experimental-5de5b6150                                ...           3 months ago
  • 0.0.0-ea6ed3dbb                                ...           3 months ago
  • 0.0.0-experimental-ea6ed3dbb                                ...           3 months ago
  • 0.0.0-experimental-241c4467e                                ...           4 months ago
  • 0.0.0-241c4467e                                ...           4 months ago
  • 0.0.0-experimental-57333ca33                                ...           4 months ago
  • 0.0.0-57333ca33                                ...           4 months ago
  • 0.0.0-experimental-f42431abe                                ...           5 months ago
  • 0.0.0-f42431abe                                ...           5 months ago
  • 0.0.0-experimental-2c169a568                                ...           6 months ago
  • 0.0.0-experimental-3f3fe0874                                ...           6 months ago
  • 0.0.0-experimental-0e6839614                                ...           6 months ago
  • 16.12.0                                ...           7 months ago
  • 0.0.0-experimental-b53ea6ca0                                ...           7 months ago
  • 0.0.0-b53ea6ca0                                ...           7 months ago
  • 0.0.0-38dd17ab9                                ...           7 months ago
  • 0.0.0-experimental-38dd17ab9                                ...           7 months ago
  • 0.0.0-f6b8d31a7                                ...           7 months ago
  • 0.0.0-experimental-f6b8d31a7                                ...           7 months ago
  • 16.11.0                                ...           7 months ago
  • 0.0.0-experimental-5faf377df                                ...           7 months ago
  • 0.0.0-5faf377df                                ...           7 months ago
  • 0.0.0-experimental-1022ee0ec                                ...           7 months ago
  • 0.0.0-1022ee0ec                                ...           7 months ago
  • 0.0.0-experimental-7082d5a2d                                ...           7 months ago
  • 0.0.0-7082d5a2d                                ...           7 months ago
  • 0.0.0-experimental-d7feeb25a                                ...           7 months ago
  • 0.0.0-experimental-d364d8555                                ...           8 months ago
  • 16.10.2                                ...           8 months ago
  • 0.0.0-4ab6305f6                                ...           8 months ago
  • 16.10.1                                ...           8 months ago
  • 0.0.0-d346d9208                                ...           8 months ago
  • 16.10.0 [deprecated]           ...           8 months ago
  • 0.0.0-3694a3b5e                                ...           8 months ago
  • 0.0.0-b4b8a349a                                ...           8 months ago
  • 0.0.0-45b6443c9                                ...           9 months ago
  • 0.0.0-8d5403877                                ...           10 months ago
  • 16.9.0                                ...           10 months ago
  • 16.9.0-rc.0                                ...           10 months ago
  • 0.0.0-a1dbb852c                                ...           10 months ago
  • 0.0.0-375616788                                ...           10 months ago
  • 0.0.0-db3ae32b8                                ...           10 months ago
  • 0.0.0-bbd21066e                                ...           10 months ago
  • 0.0.0-b4178af81                                ...           10 months ago
  • 0.0.0-424099da6                                ...           a year ago
  • 0.0.0-9f395904c                                ...           a year ago
  • 0.0.0-fa1e8df11                                ...           a year ago
  • 0.0.0-50b50c26f                                ...           a year ago
  • 0.0.0-6da04b5d8                                ...           a year ago
  • 0.0.0-fb28e9048                                ...           a year ago
  • 0.0.0-4221565e1                                ...           a year ago
  • 0.0.0-9ebe1768a                                ...           a year ago
  • 0.0.0-a9eff329c                                ...           a year ago
  • 16.9.0-alpha.0                                ...           a year ago
  • 0.0.0-c35e37aab                                ...           a year ago
  • 16.8.6                                ...           a year ago
  • 0.0.0-297165f1e                                ...           a year ago
  • 16.8.5                                ...           a year ago
  • 0.0.0-f9e41e3a5                                ...           a year ago
  • 0.0.0-679402a66                                ...           a year ago
  • 16.8.4                                ...           a year ago
  • 0.0.0-741aa17a3                                ...           a year ago
  • 16.8.3                                ...           a year ago
  • 0.0.0-29b7b775f                                ...           a year ago
  • 0.0.0-b668168d4                                ...           a year ago
  • 16.8.2                                ...           a year ago
  • 0.0.0-dfabb77a9                                ...           a year ago
  • 0.0.0-0e4135e8c                                ...           a year ago
  • 16.8.1                                ...           a year ago
  • 0.0.0-11565a207                                ...           a year ago
  • 16.8.0                                ...           a year ago
  • 0.0.0-d1326f466                                ...           a year ago
  • 0.0.0-267ed9814                                ...           a year ago
  • 0.0.0-fec00a869                                ...           a year ago
  • 16.8.0-alpha.1                                ...           a year ago
  • 0.0.0-3e15b1c69                                ...           a year ago
  • 16.8.0-alpha.0                                ...           a year ago
  • 0.0.0-f22621f88                                ...           a year ago
  • 16.7.0                                ...           a year ago
  • 0.0.0-4a1072194                                ...           a year ago
  • 0.0.0-7325ebe4d                                ...           a year ago
  • 0.0.0-c5b7d26c7                                ...           a year ago
  • 0.0.0-88ada9819                                ...           2 years ago
  • 0.0.0-ed4c4a51c                                ...           2 years ago
  • 16.7.0-alpha.2                                ...           2 years ago
  • 16.7.0-alpha.1                                ...           2 years ago
  • 16.6.3                                ...           2 years ago
  • 0.0.0-0c756fb-f7f79fd                                ...           2 years ago
  • 16.6.2 [deprecated]           ...           2 years ago
  • 0.0.0-0c756fb-697f004                                ...           2 years ago
  • 0.0.0-8b3c1e4-1d1a717                                ...           2 years ago
  • 0.0.0-a8988e4-1d1a717                                ...           2 years ago
  • 0.0.0-d5e1bf0-aee1b84                                ...           2 years ago
  • 16.6.1                                ...           2 years ago
  • 16.7.0-alpha.0                                ...           2 years ago
  • 16.6.0                                ...           2 years ago
  • 16.6.0-alpha.8af6728                                ...           2 years ago
  • 16.6.0-alpha.400d197                                ...           2 years ago
  • 16.5.2                                ...           2 years ago
  • 16.6.0-alpha.0                                ...           2 years ago
  • 16.5.1                                ...           2 years ago
  • 16.5.0                                ...           2 years ago
  • 16.4.2                                ...           2 years ago
  • 16.3.3                                ...           2 years ago
  • 16.2.1                                ...           2 years ago
  • 16.1.2                                ...           2 years ago
  • 16.0.1                                ...           2 years ago
  • 16.4.1 [deprecated]           ...           2 years ago
  • 16.4.0 [deprecated]           ...           2 years ago
  • 16.3.2 [deprecated]           ...           2 years ago
  • 16.3.1 [deprecated]           ...           2 years ago
  • 16.3.0 [deprecated]           ...           2 years ago
  • 16.3.0-rc.0                                ...           2 years ago
  • 16.3.0-alpha.3                                ...           2 years ago
  • 16.3.0-alpha.2                                ...           2 years ago
  • 16.4.0-alpha.0911da3                                ...           2 years ago
  • 16.4.0-alpha.3174632                                ...           2 years ago
  • 16.4.0-alpha.7926752                                ...           2 years ago
  • 16.3.0-alpha.1                                ...           2 years ago
  • 16.3.0-alpha.0                                ...           2 years ago
  • 16.2.0 [deprecated]           ...           3 years ago
  • 16.1.1 [deprecated]           ...           3 years ago
  • 16.1.0 [deprecated]           ...           3 years ago
  • 16.1.0-rc                                ...           3 years ago
  • 16.1.0-beta.1                                ...           3 years ago
  • 16.1.0-beta                                ...           3 years ago
  • 16.0.0 [deprecated]           ...           3 years ago
  • 15.6.2                                ...           3 years ago
  • 16.0.0-rc.3                                ...           3 years ago
  • 16.0.0-rc.2                                ...           3 years ago
  • 16.0.0-rc.1                                ...           3 years ago
  • 16.0.0-beta.5                                ...           3 years ago
  • 16.0.0-beta.4                                ...           3 years ago
  • 16.0.0-beta.3                                ...           3 years ago
  • 16.0.0-beta.2                                ...           3 years ago
  • 16.0.0-beta.1                                ...           3 years ago
  • 15.6.1                                ...           3 years ago
  • 15.6.0                                ...           3 years ago
  • 16.0.0-alpha.13                                ...           3 years ago
  • 15.6.0-rc.1                                ...           3 years ago
  • 16.0.0-alpha.12                                ...           3 years ago
  • 16.0.0-alpha.11                                ...           3 years ago
  • 16.0.0-alpha.10                                ...           3 years ago
  • 0.14.9                                ...           3 years ago
  • 16.0.0-alpha.9                                ...           3 years ago
  • 15.5.4                                ...           3 years ago
  • 15.5.3                                ...           3 years ago
  • 15.5.2                                ...           3 years ago
  • 15.5.1                                ...           3 years ago
  • 15.5.0                                ...           3 years ago
  • 16.0.0-alpha.8                                ...           3 years ago
  • 15.5.0-rc.2                                ...           3 years ago
  • 16.0.0-alpha.7                                ...           3 years ago
  • 15.5.0-rc.1                                ...           3 years ago
  • 16.0.0-alpha.6                                ...           3 years ago
  • 16.0.0-alpha.5                                ...           3 years ago
  • 16.0.0-alpha.4                                ...           3 years ago
  • 16.0.0-alpha.3                                ...           3 years ago
  • 16.0.0-alpha.2                                ...           3 years ago
  • 16.0.0-alpha.0                                ...           3 years ago
  • 16.0.0-alpha                                ...           3 years ago
  • 15.4.2                                ...           3 years ago
  • 15.4.1                                ...           4 years ago
  • 15.4.0                                ...           4 years ago
  • 15.4.0-rc.4                                ...           4 years ago
  • 15.4.0-rc.3                                ...           4 years ago
  • 15.4.0-rc.2                                ...           4 years ago
  • 15.4.0-rc.1                                ...           4 years ago
  • 15.3.2                                ...           4 years ago
  • 15.3.2-rc.1                                ...           4 years ago
  • 15.3.1                                ...           4 years ago
  • 15.3.1-rc.2                                ...           4 years ago
  • 15.3.1-rc.1                                ...           4 years ago
  • 15.3.0                                ...           4 years ago
  • 15.3.0-rc.3                                ...           4 years ago
  • 15.3.0-rc.2                                ...           4 years ago
  • 15.3.0-rc.1                                ...           4 years ago
  • 15.2.1                                ...           4 years ago
  • 15.2.0                                ...           4 years ago
  • 15.2.0-rc.2                                ...           4 years ago
  • 15.2.0-rc.1                                ...           4 years ago
  • 15.1.0                                ...           4 years ago
  • 15.1.0-alpha.1                                ...           4 years ago
  • 15.0.3-alpha.2                                ...           4 years ago
  • 15.0.3-alpha.1                                ...           4 years ago
  • 15.0.2                                ...           4 years ago
  • 15.0.2-alpha.4                                ...           4 years ago
  • 15.0.2-alpha.3                                ...           4 years ago
  • 15.0.2-alpha.2                                ...           4 years ago
  • 15.0.2-alpha.1                                ...           4 years ago
  • 15.0.1                                ...           4 years ago
  • 15.0.0                                ...           4 years ago
  • 0.14.8                                ...           4 years ago
  • 15.0.0-rc.2                                ...           4 years ago
  • 15.0.0-rc.1                                ...           4 years ago
  • 0.14.7                                ...           4 years ago
  • 0.15.0-alpha.1                                ...           4 years ago
  • 0.14.6                                ...           4 years ago
  • 0.14.5                                ...           4 years ago
  • 0.14.4                                ...           4 years ago
  • 0.14.3                                ...           5 years ago
  • 0.14.2                                ...           5 years ago
  • 0.14.1                                ...           5 years ago
  • 0.14.0                                ...           5 years ago
  • 0.14.0-rc1                                ...           5 years ago
  • 0.14.0-beta3                                ...           5 years ago
  • 0.14.0-beta2                                ...           5 years ago
  • 0.14.0-beta1                                ...           5 years ago
  • 0.1.0 [deprecated]           ...           6 years ago
Downloads
Today 371
This Week 59,659
This Month 238,114
Last Day 3,306
Last Week 60,630
Last Month 275,663
Dependencies (4)
Dev Dependencies (0)
None
Dependents (43198)