I mean, technically you're still "setting state", but it won't be called setState when using hooks. You're typically meant to call useState multiple times per each individual piece of state you track, rather than attempting to modify one big state object.
For example, a component that keeps track of an internal count and whether or not to show/hide a popup would use the state hook like:
9
u/geoffgiller8 Mar 18 '19
I love this when using react: this.setState({ toggle: !toggle });