Quad interview question

Why do you use use state for react