bottom-up
<html>
<head>
<title>Document</title>
<script src="../react.js"></script>
<script src="../react-dom.js"></script>
<script src="http://cdn.bootcss.com/babel-core/5.8.38/browser.min.js"></script>
</head>
<body>
<div id="demo"></div>
<script type="text/babel">
function Welcome(props) {
return <h1>Hello, {props.name}</h1>
}
function App() {
return (
<div>
<Welcome name="a"/>
<Welcome name="b"/>
<Welcome name="c"/>
</div>
)
}
const element = <App />
ReactDOM.render(
element,
document.getElementById('demo')
)
</script>
</body>
</html>