I would use class when there is something that functional components can't implement like state or lifecycle methods, waitttttttttttttttttt...
(当功能组件无法实现的某些东西(例如状态或生命周期方法),waitttttttttttttttttttttt时,我将使用类...)
Since hooks have the state and lifecycle methods you don't need classes anymore :)
(由于钩子具有状态和生命周期方法,因此您不再需要类 :))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…