title: how to re-render child component on state change(Parent) reactjs
body: <p>I have an array list<br>
  logged in the child component which returns me the initial array.<br>
  After changing data from the API <code>componentDidMount</code><br>
  I get an array of objects<br>
  if i log that array in the Parent component in the <code>render</code> function.<br>
  it is changing<br>
  but the child component it is not.<br>
  what shall i do ??</p>