Fabelio interview question

Functional or class component? Why?