Q. What is React state management primarily used for?