The essentials

  1. React.createElement(type, props, children)

    Create a ReactElement with the given component class, props and children.

    var link = React.createElement('a', {href: '#'}, "Save")
    var nav = React.createElement(MyNav, {flat: true}, link)
    
  2. React.cloneElement(element, props, children)

    Create a new ReactElement, merging in new props and children.

  3. ReactDOM.render(element, domNode)

    Take a ReactElement, and render it to a DOM node. E.g.

    ReactDOM.render(
      React.createElement('div'),
      document.getElementById('container')
    )
  4. ReactDOM.findDOMNode(element)

    Return the DOM node corresponding to the given element (after render).

Special props

propTypes

Available under React.PropTypes. Optionally append .isRequired.