Child Component
Count - 0
If our state changes when we pass the Child component as a ‘prop‘:
  • In initial render => Parent and child components will render
  • After state change => only Parent componetn will re-render
    in fact React will optimize the re-render for us knowing that the prop has to be refering to the same element before