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>
 
var SongList = React.createClass({
  render () {
    return <ul>
      {this.props.songs.map(function (song) {
        return <li>{song.name}, {song.year}</li>;
      })}
    </ul>;
  }
});
var taylorSwiftHits = [
  {name: "Blank Space", year: 2014 },
  {name: "You Belong With Me", year: 2009 },
  {name: "We Are Never Ever Getting Back Together", year: 2012 },
  {name: "Shake It Off", year: 2014 },
];
React.render(<SongList songs={taylorSwiftHits} />, document.body);
Output

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

Dismiss x
public
Bin info
chantasticpro
0viewers