NeoSOFT interview question

difference between class and functional component