Constructor vs getInitialState in React

submitted 3 years ago by LauraNutt to demcra

No ES6? No problem. getInitialState is the ES5 friendly method to define the initial state of a React component.