Setting initial state
"The initial state can be set using the getInitialState
function." said Mike.
var App = React.createClass({ getInitialState: function() { return { changeSets: [] }; }, render: function(){ console.log(this.state.changeSets); // prints [] });
"State can be accessed similar to props using this.state
." Mike explained further.