var Tab = React.createClass({
mixins: [ControllablesMixin],
controllables: ['active'],
getDefaultProps: function() {return {defaultActive: false};},
handleClick: function(event) {
if (this.props.onClick) this.props.onClick(event);
this.setState({active: !this.state.active});
},
render: function() {
return (
{this.props.children}
);
}
});
(function renderTabs(active) {
React.render(
Hello, World!,
Goodbye, World!,
, document.body);
}());