MoneyFellows interview question

Explain how components work in react.js