title: ComponentDidMount is not working with this code
body: <p><a href="https://i.stack.imgur.com/FUI8H.png" rel="nofollow noreferrer" title="code i wrote">ComponentDidMount is not working with this code</a></p>
  
  <p>when i check using react plugin in chrome don't get anything in array please help me to figure where i am wrong. i am little new in reactjs</p>