News for hackers. Stuff that matters.
Re:React and Redux are a joke right? by hex13 on Saturday August 19, 2017 @10:54AM (#15053701)
I've created library `transmutable` for performing automatic copy-on-write behavior in JS (you just write imperative code which is transformed behind scenes into immutable updates https://npmjs.com/package/transmutable

This can avoid boilerplate traditionally associated with immutable updates in JavaScript, because you just write

    const copy = transform(original, stage => {
       stage.someArray[index] = 42;
    });
and it returns immutable copy of original object with appropriate mutations.

There are no comments on this comment yet.