title: difference between componentDidMount and getInitialState in Reactjs
body: <p>I understand that getInitialState is called once in the component's lifecycle and componentDidMount is called when the component is rendered.</p>
  
  <p>So does that mean both will get called just once in the component's lifecycle? What's the difference?</p>