4 ms·
we use lenses in react/typescript together with jotai atoms to express data paths in complex structures. it’s an amazing basic idea that is done a disservice by
by valyagolev 4y ago
we use lenses in react/typescript together with jotai atoms to express data paths in complex structures. it’s an amazing basic idea that is done a disservice by the proliferation of weird concepts and operators
- dotneter 4y agoAre there any advantages to use lenses instead of immer?
- valyagolev 4y agowe use both a lens library and an immutable data structures library. lenses are not a data structure, but a path into it