Our great sponsors
|6 months ago||12 days 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
Changelog #0023 — 🛠️ Internal refactoring and improvements
4 projects | dev.to | 29 May 2023
We took inspiration from the many frameworks we worked with throughout our careers. And maybe surprisingly, Django’s ORM layer impacted our design choices and the API quite a bit. The resulting framework relies on Zod for schemas and validation and Valtio for React integration.
Is redux and thunks still used or are there other alternatives for it now?
12 projects | /r/reactjs | 10 May 2023
Valtio is like simplified MobX
Why is building a UI in Rust so hard?
6 projects | /r/rust | 17 Feb 2023
Even simpler than Zustand are state-atom libraries like jotai or recoil, or proxy based ones like valtio. Here's some discussion about the differences.
2 projects | dev.to | 30 Jan 2023
What is being used right now for ioc/state-managment?
3 projects | /r/reactjs | 2 Jan 2023
I'm switching from redux-saga to valtio (https://github.com/pmndrs/valtio) for now. It's simple and easy to use, everything's great so far.
Ask HN: What is your favorite front end state management solution?
12 projects | news.ycombinator.com | 25 Dec 2022
I like valtio, works w/ React or just js. Has subscribe, derive, and more.
Explanation on how Redux or React Context could help and picking the best option
6 projects | /r/webdev | 27 Oct 2022
Jotai and Valtio are both also really good. Recently looked at Nanostore as well and has some similarity to Jotai and Recoil.
No-build TODO app using HTM + Preact
10 projects | dev.to | 4 Jun 2022
The state can be manipulated outside the React/Preact lifecycle too using vanilla JS. Persisting the app state to localStorage is also trivial.
React state management libraries in 2022
8 projects | /r/reactjs | 18 May 2022
Have you looked at Valtio at all? Same author as zustand.
[Tutorial] Building a realtime multiplayer game using React & Conflict-free Replicated Data Types (CRDT) of Yjs.
If you want to use Yjs in your app, I highly suggest you use Valtio for state management, which has support for Yjs synchronization. Or if you want to use just Yjs for state, there is immer-yjs that gives you mutable semantics over immutable one of Yjs.
What are some alternatives?
MobX - Simple, scalable state management.
zustand - 🐻 Bear necessities for state management in React
jotai - 👻 Primitive and flexible state management for React
Immer - Create the next immutable state by mutating the current one
leva - 🌋 React-first components GUI
Recoil - Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.
rtk-query - Data fetching and caching addon for Redux Toolkit
optics-ts - Type-safe, ergonomic, polymorphic optics for TypeScript
solid-start - SolidStart, the Solid app framework
react-redux - Official React bindings for Redux
redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development