Allstate interview question

How is state managed in react js