Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://fb.me/react-0.14.7.min.js"></script>
<script src="https://fb.me/react-dom-0.14.7.min.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <div id="react-example"></div>
</head>
<body>
</body>
</html>
 
class MyComponent extends React.Component {
  render () {
    return (
      <div>
        <span>{Math.random()}</span><br/>
        <button onClick={()=>this.forceUpdate()}>Force update</button>
      </div>
    )
  }
}
ReactDOM.render(<MyComponent/>, document.getElementById('react-example'))
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers