<div id="a"></div>
<div id="b"></div>
<div id="c"></div>
.my-first-component p {
  color: blue;
}
var App = React.createClass({
  displayName: 'App',

  render: function render() {
    return React.createElement(
      'div',
      { className: 'my-first-component' },
      React.createElement(
        'p',
        null,
        'Hello World'
      )
    );
  }
});

ReactDOM.render(React.createElement(App, null), document.querySelector('#a'));
ReactDOM.render(React.createElement(App, null), document.querySelector('#b'));
ReactDOM.render(React.createElement(App, null), document.querySelector('#c'));
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://fb.me/react-15.1.0.min.js
  2. https://fb.me/react-dom-15.1.0.min.js