PureCode Software interview question

How do you handle state management in a MERN application?