Jun 10, 2022
The logic is still inside the component tho. And class-based react is explicit that it is storing its own state, rather than having this weird hidden registry running behind the scenes letting your function pretend to be functional when it's actually still stateful.