crux
legend-state
crux | legend-state | |
---|---|---|
11 | 10 | |
15 | 2,444 | |
- | 2.2% | |
10.0 | 9.5 | |
over 1 year ago | 4 days ago | |
TypeScript | TypeScript | |
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.
crux
-
How is routing done without React Router
I built a simple router in about 50 lines: https://github.com/andyjessop/crux/blob/main/apps/dev/src/shared/router/router.service.ts
-
Axios reaches 1.0.0
For comparison, I'm writing a front-end framework where the entire size (including router, data fetching/caching, state management) is less than the size of axios.
-
I am sick and tired of react-redux. Who has some good alternatives?
It's like looking in a mirror. This is exactly why I'm working on crux. Seeing as you have similar thoughts, I'd love to hear your feedback.
-
Is redux toolkit essential to project with react or should I be good with basic redux
Immer's a cool library if you don't mind doing this at the top of every reducer: /* eslint-disable no-param-reassign */. I normally prefer some kind of immutable merge function, like this:
-
Hyper Fetch - opinionated fetching framework, async storage with persistance possibilities for both - requests and cache.
Wow, you've done an amazing job there. I prefer your syntax over RTKQuery, and I really like the idea of the queue. I'm implementing a similar kind of thing myself, except just for redux and not as fully-featured as your solution.
-
I built a card game with framer-motion and xstate 👀
Yeah I get this. I would say two things. Firstly, this is aimed primarily at people who are already using Redux. And secondly (and more importantly), Redux itself is not inherently complex - you can write it in 20 lines of code - it's just that the accepted best practices add lots of boilerplate. I've addressed this in my createSlice library, which removes all but the most essential code from the config: https://github.com/andyjessop/crux/tree/main/packages/redux-slice
-
Senior Devs - What are your favorite interview questions for a senior React candidate.
100% agree (both with your opinion and that it's controversial), that's why I'm working on my own framework that attempts to solve this issue: https://github.com/andyjessop/crux
-
What is the most underrated tool you encountered ?
I don't think there's an issue with boilerplate in Redux any more, especially with RTK's prevalence. I made my own createSlice that simplifies the creation of reducers and actions still further - it has an extremely straightforward API and is only 30 or so lines of code.
-
Frameworks
It's not ready for production yet (far from it), but here it is if anyone is interested in finding out more and/or contributing: https://github.com/andyjessop/crux
legend-state
-
Setup test driven development on any React app with Cortex
There is not much to refactor in this simple example, but if we look closer to the the legend app state lib, we can see that set can take a callback with the previous state as parameter
-
Which state management library should I use?
For signals, Signia or Legend State.
-
Legend-State 1.0: The fastest React state library
I'd love to know what you think, and I'm also happy to answer any general JavaScript performance questions if you want since I've gone very deep into optimizing . See the GitHub: https://github.com/LegendApp/legend-state
-
Show HN: Legend-State 1.0 – The fastest React state library
After almost a year of development and iterating, we just released Legend-State 1.0. It's the fastest React state library and is very easy to use, based on Observables (Signals) with fine-grained reactivity and built-in persistence.
I'd love to know what you think, and I'm also happy to answer any general JavaScript performance questions if you want since I've gone very deep into optimizing .
https://github.com/LegendApp/legend-state
-
Legend App?
We do plan on adding a table view, and we've designed out a general idea of how it would work. And I'm very excited about it! But I'm not sure exactly when we'll start on it. Right now we're finalizing a new state/sync system (in open source at https://github.com/LegendApp/legend-state), then we'll add support for Markdown files, then a very cool new feature we're still exploring. I think you could expect sometime early next year we'll start working on expanding the view modes (but it's all still fluid so no promises!).
-
Which state management library is the best for React? (suggest any libraries that are not included in the poll)
Legend-state - https://legendapp.com/open-source/state/
- Making React fast by default and truly reactive
-
I am sick and tired of react-redux. Who has some good alternatives?
Legend-State is good.
What are some alternatives?
hyper-fetch - ⚡ Fetching and realtime data exchange framework.
zustand - 🐻 Bear necessities for state management in React
signals - Manage state with style in every framework
state-machine - A small Javascript Promise-based Finite State Machine implementation
devtools - Replay.io DevTools
robot - 🤖 A functional, immutable Finite State Machine library
MobX - Simple, scalable state management.
ky - 🌳 Tiny & elegant JavaScript HTTP client based on the browser Fetch API
redux - A JS library for predictable global state management
react-starter-kit - The web's most popular Jamstack front-end template (boilerplate) for building web applications with React