Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>React</title>
  <script src="https://fb.me/react-15.1.0.js"></script>
  <script src="https://fb.me/react-dom-15.1.0.js"></script>
</head>
<body>  
<div id="container">
  <!-- This element's contents will be replaced with your component. -->
</div>
</body>
</html>
 
class Hello extends React.Component {
  render() {
    return <div>Hello {this.props.name}</div>;
  }
}
 
ReactDOM.render(<Hello name="World" />, document.getElementById('container'));
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
rstacruzpro
0viewers