<div>
    <Header />
    <Content type="main">
        <Menu position='left' />
        <Counter />
    </Content>
    <Footer />
  </div>


var Increment = function(value){
    return value+1;
}
//----------------------------
Increment(0); //always return 1






var Increment = React.createClass({
  propTypes: {
    value: React.PropTypes.number
  },
  render: function() {
    return (
      <span>this.props.value+1</span>
    );
  }
});
//----------------------------
<Increment value={0} /> //always return <span>1</span>
Made with Slides.com