Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
  <script src="https://fb.me/react-0.13.3.js"></script>
</head>
<body>
</body>
</html>
 
// 1. In the render function, use the onClick React event to trigger the handleClick function
var AlertSomething = React.createClass({
  handleClick () {
    alert('Yay! You did it!')
  },
  
  render () {
    return <div>Click me!</div>;
  }
});
React.render(<AlertSomething />, document.body);
Output 300px

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

Dismiss x
public
Bin info
chantasticpro
0viewers