Patrick Smith
Patrick Smith
See: https://twitter.com/ryanflorence/status/1313246663658467328  Could use custom elements instead of JSX.
CSS frameworks like Tailwind are incredibly easy and fast to use. However, it adds an overhead if all the CSS classes are predefined upfront. If we could statically analyze our...
See: - https://stackoverflow.com/questions/31861260/correct-microdata-markup-for-breadcrumbs - https://developers.google.com/search/docs/data-types/breadcrumb - https://search.google.com/structured-data/testing-tool ```golang ListWith(Ol, schemaorg.BreadcrumbList)( Link("/", Span(Text("Root page"), schemaorg.ItemPropName)), Link("/category", Span(Text("Category page"), schemaorg.ItemPropName)), Span(Span(Text("This page"), schemaorg.ItemPropName)), ) ``` might produce something akin to: ```html Root...
Instead of context we have WebAssembly.Memory Instead of props we have imports. Instead of "current state" we have exports. Perhaps multiple wasm instances (or other state machines) can be synced...
https://buttondown.email/htmhell/archive/issue-21-closing-dialogs/
Can be plugged into any machine. Would support an `assign` event.
Before: ```js import { start } from "yieldmachine"; function TrafficLights() { function* Red() { yield on("timer", Green); } function* Green() { yield on("timer", Yellow); } function* Yellow() { yield on("timer",...
Declare state machines using components. YieldMachine is an opinionated library for creating state machines and actors. JavaScript Generator functions allow rich behaviour to be declared and composed together. And its...
```ts function reducer(previousState: State, event: React.FormEvent | React.MouseEvent): State { return previousState.machine.next(event); } ``` ## `eventsReducer(machine)` It wouldn’t support side effects and listening/emitting to events (e.g. with `listenTo()`). ```js import...