Quad Interview Question

Why do you use use state for react