@bmv437/react-dom
React package for working with the DOM.
Last updated 2 years ago by bmv437 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @bmv437/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

  • 16.5.0-future.d66505d                                ...           latest (2 years ago)

2 Versions

  • 16.5.0-future.d66505d                                ...           2 years ago
  • 16.4.3-alpha.026aa9c                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 6
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |