it could look similar to chaining Promises, like function Counter() { return useState(0) .then((count, setCount) => { return useEffect(() => { // ... }, [count]).then(() => { return <div>{count}</div> }) }) entirely pure, just a chain of continuations

0

If you have a fediverse account, you can quote this note from your own instance. Search https://bsky.brid.gy/convert/ap/at://did:plc:fpruhuo22xkm5o7ttr2ktxdo/app.bsky.feed.post/3m2xeuw4ic22v on your instance and quote it. (Note that quoting is not supported in Mastodon.)