react-dom
    Overview
    Documentation
    Tutorials
    Chat
    Insights
    Code
    Dependencies
    Contributors
    Jobs

react-dom

React package for working with the DOM.

16.9.0  •  Updated 8 months ago  •  by facebook  •  MIT License

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

Popularity

Maintenance

Development

Last ver 8 months ago
Created 6 years ago
Last commit 4 months ago
5 hours between commits

Technology

Node version: 10.14.2
3102.5K unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

88 contributors
Brian Vaughn
383 commits, 64 merges, 55 PRs
Works at facebook
Dominic Gannaway
158 commits, 205 merges, 208 PRs
Works at facebook
Andrew Clark
121 commits, 121 merges, 144 PRs
Works at facebook
Dan Abramov
84 commits, 83 merges, 77 PRs
Works at facebook
Sebastian Markbåge
62 commits, 67 merges, 72 PRs
Works at Facebook
Nicolas Gallagher
42 commits, 66 merges, 73 PRs
Works at Facebook

Tags

react
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookTwitterLinkedIn
© 2020 Devstore, Inc.