Re:Comparing Ember Octane and React
by aphextron on Tuesday May 12, 2020 @11:20AM
(#23154924)
>Couldn't you do the same thing with class components though?
Sure. But the point is that the entire class syntax becomes superfluous once you do that. Everything becomes a pure functional component, and you can just throw in a `useEffect` wherever the need for lifecycle based side effects arises.
Sure. But the point is that the entire class syntax becomes superfluous once you do that. Everything becomes a pure functional component, and you can just throw in a `useEffect` wherever the need for lifecycle based side effects arises.