OICR interview question

What does useeffect do in react