LinkedIn Interview Question

Explain how and why state management is used in react?