Our great sponsors
|6 months ago||1 day ago|
|MIT License||MIT License|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
I may have a crush on the TypeScript compiler, because of stuff like this
3 projects | /r/typescript | 23 May 2023
You may be interested also in checking out the implementation of Lens in monocle-ts, one of the libraries in the fp-ts ecosystem
Haskell Lens Tutorial by Exercises
2 projects | news.ycombinator.com | 6 Dec 2022
Is there a cleaner way to immutably update a deeply nested attribute? (I feel like this is not very clean)
3 projects | /r/typescript | 4 Jan 2022
You could have a look at the monocle-ts library. It was designed to deal with this kind of problem.
Simple Immutable Data w/ Spectacles 👓
5 projects | dev.to | 24 Aug 2021
spectacles-ts integrates seamlessly with the fp-ts ecosystem (it's built on top of the excellent monocle-ts library)
Why is it so difficult to modify a deeply nested state in React?
6 projects | /r/reactjs | 29 Jun 2021
lenses help with this quite a bit, check out monocle-ts
2 projects | news.ycombinator.com | 12 Apr 2023
Jotai, now with Optics
6 projects | dev.to | 30 Oct 2020
Fast forward to now and we are learning more about Jotai, a Recoil alternative from Poimandres ( creators of react-three-fiber, etc.). Needless to say, we were very excited when we stumbled upon Jotai Issue #44, a discussion concerning focusable atoms started by Meris Bahtijaragic and the compelling work that resulted, jotai-optics. This code wraps another library we have been very intrigued by as of late, optics-ts which provides a whole new level of typesafe, functional goodness.
What are some alternatives?
zustand - 🐻 Bear necessities for state management in React
spectacles-ts - Practical Optics • Unfancy monocle-ts
immutability-helper - mutate a copy of data without changing the original source
valtio - 💊 Valtio makes proxy-state simple for React and Vanilla
fp-ts - Functional programming in TypeScript
fp-ts-contrib - A community driven utility package for fp-ts
jotai - 👻 Primitive and flexible state management for React
python-lenses - A python lens library for manipulating deeply nested immutable structures
reatom - Reatom - the ultimate state manager
focal - Program user interfaces the FRP way.