Outscal interview question

why do use key in react