the line between "which components should or shouldn't have state"
That line should still be in the same place. If we are talking about state management, using hooks or context is an implementation detail.
Are Hooks supposed to encourage us to decentralize state by writing more stateful components?
I don't think that's the goal. Hooks are a way to reuse logic, that's it. They act (kinda) as a replacement for mixins or the higher order components pattern.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
That line should still be in the same place. If we are talking about state management, using
hooks
orcontext
is an implementation detail.I don't think that's the goal. Hooks are a way to reuse logic, that's it. They act (kinda) as a replacement for
mixins
or thehigher order components
pattern.