Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's a running in circle feel about react right now for me.

It's the same old OO (state+methods) vs FP (lexical scope + closures) thing, in the dom now.

A lot of react state libs are also tweaking around this idea.

Not long ago a jotai class made me see this.

    <Component />
    <Component />
these components use the same state defined in the source

so to avoid that

    <Provider>
        <Component />
    <Provider>
    <Component />
which now intercepts the state object creation to have two independent states. I have a feeling that soon we'll see

    <new class={Component} />
strange


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: