Skip to content
Discussion options

You must be logged in to vote

Converted to a discussion because there’s nothing actionable for me.

Whatsup definitely seems similar to Crank! It has the generator component pattern, which is, in my humble opinion, a great idea. But it uses observables for component state. The interesting thing about saying observables are the state of the component, is that the component is still stateful, and the generator scope can still have state in it which is not tracked in an observable, so the observable is just a fancy extra layer on top of the statefulness of generators.

function* App() {
    const counter = observable(0)
    const increment = () => counter(counter() + 1)
    let i = 0;

    while (true) {
        // this is…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by brainkim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #279 on August 16, 2025 03:29.