DEV Community

Discussion on: "Just Use Props": An opinionated guide to React and XState

Collapse
 
mattpocockuk profile image
Matt Pocock

it leaves a lot of the power of XState on the table

True! But with great power comes great responsibility. Sticking within the guidelines above is a great first step for introducing XState to a codebase.

Context for global state

Yes! This is used in the example above. XState is an amazing tool for orchestrating global state (some of the most important state in your app) because it is so robust. I've used this pattern a dozen times or so in production code.

Collapse
 
fraser_drops profile image
Fraser

Sticking within the guidelines above is a great first step for introducing XState to a codebase

I totally agree!

This is used in the example above. XState is an amazing tool for orchestrating global state

Yup for sure, I'm looking forward to it becoming more widely used for this. Thanks for your work!