Anmeda Systems interview question

1 What is HOC in react? 2 How does React work?