Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//fb.me/react-with-addons-0.11.0.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <div id="react"></div>
</body>
</html>
 
/** @jsx React.DOM */
var HelloMessage = React.createClass({
  render: function() {
    return React.DOM[this.props.component.slug](null,
    this.props.component.value);
  }
});
var dynamictag = {
  slug: 'h1',
  value: 'Heading 1'
};
React.renderComponent(<HelloMessage component={dynamictag} />, document.getElementById('react'));
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers