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.12.0.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<h1>React Bsp. 2</h1>
<div id="greeting"></div>
</body>
</html>
 
body {
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;;
  font-size: 20px;
  line-height: 1.7;
  margin: 0;
  padding: 30px;
}
h1 {
  border-bottom: 1px solid #ddd;
  font-size: 1.5em;
  font-weight: bold;
  margin: 0 0 15px;
  padding: 0;
}
p, ul {
  margin: 22px 0;
}
 
      var Greeter = React.createClass({
        render: function() {
          return (
            <p>Hallo {this.props.name}!</p>
          )
        }
      });
      React.render(
        <Greeter name="Welt" />,
        document.getElementById('greeting')
      );
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers