NeoSOFT Interview Question

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