Agoda interview question

how do you use function components?