/** @jsx React.DOM */ var NavView = React.createClass({ getInitialState: function() { return { unreadCount: {} }; }, componentDidMount: function() { $.get(this.props.source, function(result) { console.log('NavView $.get', result); this.setState({unreadCount: result}); }.bind(this)); }, render: function() { var keys = Object.keys(this.state.unreadCount).sort(); var lis = []; for (var i in keys) { var key = keys[i]; var value = this.state.unreadCount[key]; lis.push(
  • {key}
  • ); } return ( ); } });