NeoSOFT interview question

Q: the difference between functional component and class-based component in react.