<div id="root">
  <!-- 這個 div 區塊由 React 管理 -->
</div>
class HELLO extends React.Component {
  render() {
    return <h1>HELLO {this.props.who}!</h1>;
  }
}

ReactDOM.render(<HELLO who="MNYA" />, document.getElementById("root"));
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.js
  2. https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.js