R.R. Donnelley interview question

How do we use state in react