<title>菜鸟学堂 React 实例</title>
<script src="http://cdn.bootcss.com/react/15.4.2/react.min.js"></script>
<script src="http://cdn.bootcss.com/react/15.4.2/react-dom.min.js"></script>
<script src="http://cdn.bootcss.com/babel-standalone/6.22.1/babel.min.js"></script>
<script type="text/babel">
var MyTitle = React.createClass({
title: React.PropTypes.string.isRequired,
return <h1> {this.props.title} </h1>;
<MyTitle title={title} />,
document.getElementById('example')