react-dom
React package for working with the DOM.
Last updated 2 days ago by gaearon .
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-f9e41e3a5                                ...           canary (2 days ago)
  • 16.8.5                                ...           latest (2 days ago)
  • 16.8.5                                ...           next (2 days ago)
  • 16.3.3                                ...           tmp (8 months ago)
  • 0.0.0-0c756fb-f7f79fd                                ...           unstable (4 months ago)

152 Versions

  • 16.8.5                                ...           2 days ago
  • 0.0.0-f9e41e3a5                                ...           2 days ago
  • 0.0.0-679402a66                                ...           10 days ago
  • 16.8.4                                ...           19 days ago
  • 0.0.0-741aa17a3                                ...           19 days ago
  • 16.8.3                                ...           a month ago
  • 0.0.0-29b7b775f                                ...           a month ago
  • 0.0.0-b668168d4                                ...           a month ago
  • 16.8.2                                ...           a month ago
  • 0.0.0-dfabb77a9                                ...           a month ago
  • 0.0.0-0e4135e8c                                ...           a month ago
  • 16.8.1                                ...           2 months ago
  • 0.0.0-11565a207                                ...           2 months ago
  • 16.8.0                                ...           2 months ago
  • 0.0.0-d1326f466                                ...           2 months ago
  • 0.0.0-267ed9814                                ...           2 months ago
  • 0.0.0-fec00a869                                ...           2 months ago
  • 16.8.0-alpha.1                                ...           2 months ago
  • 0.0.0-3e15b1c69                                ...           2 months ago
  • 16.8.0-alpha.0                                ...           2 months ago
  • 0.0.0-f22621f88                                ...           2 months ago
  • 16.7.0                                ...           3 months ago
  • 0.0.0-4a1072194                                ...           3 months ago
  • 0.0.0-7325ebe4d                                ...           3 months ago
  • 0.0.0-c5b7d26c7                                ...           4 months ago
  • 0.0.0-88ada9819                                ...           4 months ago
  • 0.0.0-ed4c4a51c                                ...           4 months ago
  • 16.7.0-alpha.2                                ...           4 months ago
  • 16.7.0-alpha.1                                ...           4 months ago
  • 16.6.3                                ...           4 months ago
  • 0.0.0-0c756fb-f7f79fd                                ...           4 months ago
  • 16.6.2 [deprecated]           ...           4 months ago
  • 0.0.0-0c756fb-697f004                                ...           4 months ago
  • 0.0.0-8b3c1e4-1d1a717                                ...           4 months ago
  • 0.0.0-a8988e4-1d1a717                                ...           4 months ago
  • 0.0.0-d5e1bf0-aee1b84                                ...           4 months ago
  • 16.6.1                                ...           5 months ago
  • 16.7.0-alpha.0                                ...           5 months ago
  • 16.6.0                                ...           5 months ago
  • 16.6.0-alpha.8af6728                                ...           5 months ago
  • 16.6.0-alpha.400d197                                ...           6 months ago
  • 16.5.2                                ...           6 months ago
  • 16.6.0-alpha.0                                ...           6 months ago
  • 16.5.1                                ...           6 months ago
  • 16.5.0                                ...           7 months ago
  • 16.4.2                                ...           8 months ago
  • 16.3.3                                ...           8 months ago
  • 16.2.1                                ...           8 months ago
  • 16.1.2                                ...           8 months ago
  • 16.0.1                                ...           8 months ago
  • 16.4.1 [deprecated]           ...           9 months ago
  • 16.4.0 [deprecated]           ...           10 months ago
  • 16.3.2 [deprecated]           ...           a year ago
  • 16.3.1 [deprecated]           ...           a year ago
  • 16.3.0 [deprecated]           ...           a year ago
  • 16.3.0-rc.0                                ...           a year ago
  • 16.3.0-alpha.3                                ...           a year ago
  • 16.3.0-alpha.2                                ...           a year ago
  • 16.4.0-alpha.0911da3                                ...           a year ago
  • 16.4.0-alpha.3174632                                ...           a year ago
  • 16.4.0-alpha.7926752                                ...           a year ago
  • 16.3.0-alpha.1                                ...           a year ago
  • 16.3.0-alpha.0                                ...           a year ago
  • 16.2.0 [deprecated]           ...           a year ago
  • 16.1.1 [deprecated]           ...           a year ago
  • 16.1.0 [deprecated]           ...           a year ago
  • 16.1.0-rc                                ...           a year ago
  • 16.1.0-beta.1                                ...           a year ago
  • 16.1.0-beta                                ...           a year ago
  • 16.0.0 [deprecated]           ...           a year ago
  • 15.6.2                                ...           a year ago
  • 16.0.0-rc.3                                ...           2 years ago
  • 16.0.0-rc.2                                ...           2 years ago
  • 16.0.0-rc.1                                ...           2 years ago
  • 16.0.0-beta.5                                ...           2 years ago
  • 16.0.0-beta.4                                ...           2 years ago
  • 16.0.0-beta.3                                ...           2 years ago
  • 16.0.0-beta.2                                ...           2 years ago
  • 16.0.0-beta.1                                ...           2 years ago
  • 15.6.1                                ...           2 years ago
  • 15.6.0                                ...           2 years ago
  • 16.0.0-alpha.13                                ...           2 years ago
  • 15.6.0-rc.1                                ...           2 years ago
  • 16.0.0-alpha.12                                ...           2 years ago
  • 16.0.0-alpha.11                                ...           2 years ago
  • 16.0.0-alpha.10                                ...           2 years ago
  • 0.14.9                                ...           2 years ago
  • 16.0.0-alpha.9                                ...           2 years ago
  • 15.5.4                                ...           2 years ago
  • 15.5.3                                ...           2 years ago
  • 15.5.2                                ...           2 years ago
  • 15.5.1                                ...           2 years ago
  • 15.5.0                                ...           2 years ago
  • 16.0.0-alpha.8                                ...           2 years ago
  • 15.5.0-rc.2                                ...           2 years ago
  • 16.0.0-alpha.7                                ...           2 years ago
  • 15.5.0-rc.1                                ...           2 years ago
  • 16.0.0-alpha.6                                ...           2 years ago
  • 16.0.0-alpha.5                                ...           2 years ago
  • 16.0.0-alpha.4                                ...           2 years ago
  • 16.0.0-alpha.3                                ...           2 years ago
  • 16.0.0-alpha.2                                ...           2 years ago
  • 16.0.0-alpha.0                                ...           2 years ago
  • 16.0.0-alpha                                ...           2 years ago
  • 15.4.2                                ...           2 years ago
  • 15.4.1                                ...           2 years ago
  • 15.4.0                                ...           2 years ago
  • 15.4.0-rc.4                                ...           2 years ago
  • 15.4.0-rc.3                                ...           2 years ago
  • 15.4.0-rc.2                                ...           2 years ago
  • 15.4.0-rc.1                                ...           2 years ago
  • 15.3.2                                ...           3 years ago
  • 15.3.2-rc.1                                ...           3 years ago
  • 15.3.1                                ...           3 years ago
  • 15.3.1-rc.2                                ...           3 years ago
  • 15.3.1-rc.1                                ...           3 years ago
  • 15.3.0                                ...           3 years ago
  • 15.3.0-rc.3                                ...           3 years ago
  • 15.3.0-rc.2                                ...           3 years ago
  • 15.3.0-rc.1                                ...           3 years ago
  • 15.2.1                                ...           3 years ago
  • 15.2.0                                ...           3 years ago
  • 15.2.0-rc.2                                ...           3 years ago
  • 15.2.0-rc.1                                ...           3 years ago
  • 15.1.0                                ...           3 years ago
  • 15.1.0-alpha.1                                ...           3 years ago
  • 15.0.3-alpha.2                                ...           3 years ago
  • 15.0.3-alpha.1                                ...           3 years ago
  • 15.0.2                                ...           3 years ago
  • 15.0.2-alpha.4                                ...           3 years ago
  • 15.0.2-alpha.3                                ...           3 years ago
  • 15.0.2-alpha.2                                ...           3 years ago
  • 15.0.2-alpha.1                                ...           3 years ago
  • 15.0.1                                ...           3 years ago
  • 15.0.0                                ...           3 years ago
  • 0.14.8                                ...           3 years ago
  • 15.0.0-rc.2                                ...           3 years ago
  • 15.0.0-rc.1                                ...           3 years ago
  • 0.14.7                                ...           3 years ago
  • 0.15.0-alpha.1                                ...           3 years ago
  • 0.14.6                                ...           3 years ago
  • 0.14.5                                ...           3 years ago
  • 0.14.4                                ...           3 years ago
  • 0.14.3                                ...           3 years ago
  • 0.14.2                                ...           3 years ago
  • 0.14.1                                ...           3 years ago
  • 0.14.0                                ...           3 years ago
  • 0.14.0-rc1                                ...           4 years ago
  • 0.14.0-beta3                                ...           4 years ago
  • 0.14.0-beta2                                ...           4 years ago
  • 0.14.0-beta1                                ...           4 years ago
  • 0.1.0 [deprecated]           ...           5 years ago
Downloads
Today 156
This Week 156
This Month 182,695
Last Day 2,829
Last Week 56,919
Last Month 135,908
Dependencies (4)
Dev Dependencies (0)
None
Dependents (26282)