DEV Community

Discussion on: State machine advent: Invoking a state machine in React (5/24)

Collapse
 
codingdive profile image
Mikey Stengel

Yes you are right. I'd never destructure it in my code personally but thought I'd mention it anyway as it might be easier for some beginners to just deal with the one important function than to use the state object and possibly be confused by all the other stuff that they'll see in their editor once they type state.

Thank you for your feedback :)