Gazebo_simulation-Frontend/node_modules/react-dom
Riddhi Dave c586e2ed33 session update with django backend 2021-02-25 10:57:52 -05:00
..
cjs React files 2020-12-21 10:29:31 -05:00
umd React files 2020-12-21 10:29:31 -05:00
LICENSE React files 2020-12-21 10:29:31 -05:00
README.md React files 2020-12-21 10:29:31 -05:00
build-info.json React files 2020-12-21 10:29:31 -05:00
index.js React files 2020-12-21 10:29:31 -05:00
package.json session update with django backend 2021-02-25 10:57:52 -05:00
profiling.js React files 2020-12-21 10:29:31 -05:00
server.browser.js React files 2020-12-21 10:29:31 -05:00
server.js React files 2020-12-21 10:29:31 -05:00
server.node.js React files 2020-12-21 10:29:31 -05:00
test-utils.js React files 2020-12-21 10:29:31 -05:00
unstable-fizz.browser.js React files 2020-12-21 10:29:31 -05:00
unstable-fizz.js React files 2020-12-21 10:29:31 -05:00
unstable-fizz.node.js React files 2020-12-21 10:29:31 -05:00
unstable-flight-client.js React files 2020-12-21 10:29:31 -05:00
unstable-flight-server.browser.js React files 2020-12-21 10:29:31 -05:00
unstable-flight-server.js React files 2020-12-21 10:29:31 -05:00
unstable-flight-server.node.js React files 2020-12-21 10:29:31 -05:00
unstable-native-dependencies.js React files 2020-12-21 10:29:31 -05:00

README.md

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