Klarna interview question

How do you handle states in frontend?