The Stately Editor beta is now open for everyone! 🎉
🚀 A low-code visual editor for building app logic
🪄 Create executable diagrams and use them in code
Try the beta now at: stately.ai/editor
🔥 XState Tip #3 🔥
XState is extremely powerful in @reactjs for orchestrating side effects and composing other hooks.
Here, we use a machine to coordinate moving to a '/login' screen after 3 seconds, using Next's useRouter hook.
Are you seeing complexity scaling out of control in your React app? You might need XState.
Here, we take a badly-built fetch and give it error handling, timeouts and exponential backoff 🤯 all with the visual builder!
FULL VIDEO: youtube.com/watch?v=AQHpXD…
Are you using useState?
Then you'll know that as components scale, both useState AND useReducer can feel like ticking time bombs 🧨💥
In this video, @mattpocockuk dives deep on the tradeoffs of each hook, and where XState can help.
Full 8-minute video: youtube.com/watch?v=FrNXCJ…
🔥 XState Test v1 Alpha released 🔥
Do you want DRY, self-documenting tests without duplicated setup?
Get MAXIMUM coverage with minimal code by generating your test paths from a state machine.
Here's all the new goodness:
github.com/statelyai/xsta…
🚀The Editor is also available as a VS Code extension!
⌨️ Code and watch the state diagram appear
🖱 Or draw it on canvas and see the code update
marketplace.visualstudio.com/items?itemName…
🥳 XState V5 is here!
More powerful, yet simpler (and smaller!)
Orchestrate *any* logic, from promises and observables to state machines and statecharts and everything in between.
Whatever your code is, XState will meet you where you’re at.
🚀 Stately Studio 1.0 is now live!
🤝 Teams & roles (Pro)
🔭 Visibility settings: public, unlisted, private (Pro)
ℹ️ Priority support (Pro)
📦 Projects-first editor view
⬆️ Export to JavaScript, TypeScript & more soon
➕ So many Editor improvements!
stately.ai/editor
🎉 We’ve made it even easier to create and visualize state machines in seconds:
1️⃣ Install the XState @code extension.
2️⃣ Use the `xsm` snippet.
3️⃣ Visualize your new state machine inside VS Code.
🔥 XState Tip #5 🔥
Are you in multi-step-form hell with useState/useEffect?
XState can make things a LOT easier by colocating all your logic into a single, visualizable spot.
Time to share our current state. We're excited to announce the Stately team that will be working on the mission of making application logic more visual, robust, and accessible.
Stay updated and get early access here: stately.ai
👩💻🧑💻👇
XState on the backend?!
XState is not just a frontend library - it can run anywhere JavaScript runs.
With the waitFor helper, you can let XState handle any logic inside an async function. In this video, @mattpocockuk shows you the basics.
FULL VIDEO: youtube.com/watch?v=qqyQGE…