惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
Jina AI
Jina AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
N
Netflix TechBlog - Medium
B
Blog RSS Feed
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
The Blog of Author Tim Ferriss
D
Docker
博客园 - 聂微东
博客园 - 【当耐特】
博客园 - 三生石上(FineUI控件)
L
LangChain Blog
量子位
宝玉的分享
宝玉的分享
博客园 - 司徒正美
The Cloudflare Blog
G
Google Developers Blog
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC

Maggie Appleton

The Dark Forest and Generative AI One Developer, Two Dozen Agents, Zero Alignment Gas Town’s Agent Patterns, Design Bottlenecks, and Vibecoding at Scale January 2026 | Maggie Appleton A Treatise on AI Chatbots Undermining the Enlightenment A Brief History & Ethos of the Digital Garden Vibe Code is Legacy Code May 2025 | Maggie Appleton Home-Cooked Software and Barefoot Developers Statistically, When Will My Baby Be Born? Speculative Calendar Events ChatGPT Would be a Decent Policy Advisor March 2025 | Maggie Appleton The Expanding Dark Forest and Generative AI Humanity's Last Exam Squish Meets Structure Common Misconceptions in AI Undetected AI Exam Answers Unbaited Smidgeons Growing a Human: The First 30 Weeks How to Import Academic Papers from Zotero into Tana December 2024 | Maggie Appleton Aesthetic Command Lines with Hyper, Spaceship, and Oh My Zsh Leaving Elicit July 2024 | Maggie Appleton A Short History of Bi-Directional Links The Pattern Language of Project Xanadu Assumed Audiences Ambient Co-presence
What the Fork is xState?
2020-01-22 · via Maggie Appleton

xState is a snazzy way to manage JavaScript application state using visual state charts. It’s a pretty wonderful tool for making sure you think through every possible edge case of an application.

There’s also a handy visualiser tool that synchronizes your code and visuals. If you edit one, the other changes to match.

Screenshot of the xState visualizer

It’s perfect for visual thinkers. If someone could just build one of these for the entire of JavaScript I’ll be all set.

Here’s a little more illustrated detail on how this works:

Xstate is a tool that helps you plan out all the possible states in a JavaScript app

There's a handy interactive visualizer tool at xstate.js.org/viz

A sequence of light bulbs swapping states between unlit, lit, dim, and broken.

We can add extra options onto our states such as actions, services, guards, and activities

If you’re keen to learn more xState there’s two courses up on egghead that cover all the basics:

https://egghead.io/courses/introduction-to-state-machines-using-xstate?af=54fd64

https://egghead.io/courses/construct-sturdy-uis-with-xstate?af=54fd64


Want more illustrated notes on web development?

Take a look at Building VR Apps with React360

Building VR Apps with React360

Illustrated notes on building VR web apps with React360 , A Journey into Vue-Router

A Journey into Vue-Router

Illustrated notes on how routing works in Vue.js
, or Immutable Data with Immer and Personal Assistant Bots

Immutable Data with Immer and Personal Assistant Bots

Illustrated notes on how work with immutable data in the Immer state library