Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
valyagolev
· 3y ago · 0 comments
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
Comments
[–]
dotneter
3y ago
Are there any advantages to use lenses instead of immer?
[–]
valyagolev
OP
3y ago
we use both a lens library and an immutable data structures library. lenses are not a data structure, but a path into it