Emtrain interview question

Explain how react hooks work