Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<script src="https://unpkg.com/react@15/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@15/dist/react-dom.js"></script>
<script>
class App extends React.Component {
render() {
return (
<div>
<h1>Hello App!</h1>
<ChildA />
<ChildB />
</div>
);
}
}
class ChildA extends React.Component {
render() {
return <h2>Child A</h2>;
}
}
class ChildB extends React.Component {
render() {
return <h2>Child B</h2>;
}
}
ReactDOM.render(
<App />,
document.getElementById('app')
);
</script>
<div id='app'>
Should Render Here
</div>