News for hackers. Stuff that matters.
Re:React: You Might Not Need an Effect by agumonkey on Thursday March 23, 2023 @04:43AM (#35271901)
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

There are no comments on this comment yet.