effector-react
reactoxide
Our great sponsors
effector-react | reactoxide | |
---|---|---|
26 | 5 | |
4,491 | 133 | |
1.1% | - | |
9.5 | 0.0 | |
8 days ago | over 2 years 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.
effector-react
-
Astro.js as an alternative to Next.js: pushing the limits
In its docs, Astro recommends nanostores, but I’ve used effector in the past. And LOVED IT. So I’ve used it for this project as well.
-
Global, reactive data store vs local, colocated graphql query?
I've been using effector, together with the apollo-client for the last few years and, while it works, it's completely detached from the actual screens. In other words, you need to fetch everything (at startup) you might use at some point and it stays in the memory for the entire duration of the session. Error handling is also tricky as you need to explicitly subscribe to the specific error stores in order to render them. And, if something goes wrong, it's tricky to tell what data is actually used in the current screen, so it's almost impossible to do the Retry efficiently. OTOH the screens are nice and simple - no spinners, the data is just there, thus the app feels (and is) fast.
-
Ask HN: What is your favorite front end state management solution?
Actually, Svelte uses Effector for state management under the hood. You can read more about it here: https://effector.dev/. It also has bindings for other frameworks including React, Vue and Solid. Effector is a little not beginner-friendly, but once you truly understand it, Effector becomes a very powerful.
-
So what is Effector ?
A state-management library.
-
So what is Effector ☄️ ?
Effector it is the another way to create state and business logic for your frontend application.
- [Question] Recommendations for an agnostic state management?
-
What concepts of react are the most difficult to understand ?
https://effector.dev/ here you go
-
I need some advice for my next tech stack
Then I found Effector which seems to have the same features, and SolidJs support.
-
The new wave of React state management
Where’s effector?
-
React state management libraries in 2022
https://ngneat.github.io/elf/ https://effector.dev/
reactoxide
-
Show /r/reactjs: React Oxide: open source ReactJS code editor with tabs, files & webDAV.
It's a minimal code editor that runs in a browser. MIT licensed, code at: https://github.com/bootrino/reactoxide
- React Oxide: minimal in-browser code editor with tabs and files
-
Show HN: React Oxide: minimal in-browser code editor with tabs and files
The EventEmitter pattern seems interesting! I can't say I've wrapped my head around it enough to weigh the benefits and drawbacks. I would point out a few things after a quick look:
* It looks like you're creating an emitter wrapper around an EventEmitter instance, freezing it, then exporting the instance rather than the frozen wrapper[0]. I see .on() and .off() are wrapped here, while the project appears to use .addListener() and .removeListener() instead.
* As a typescript project, I would recommend using typed-emitter[1]. Not only does it ensure you're only emitting recognized events, it ensures that the type of the payload is correct for the corresponding event. Currently, your typed handlers are coercing from `any` as far as your IDE is concerned, rendering it unable to help prevent you from mistakes.
* Instead of plumbing an emitter prop everywhere, even through components that don't interact with it directly, this looks like a better fit for the Context pattern to create the global emitter instance in a top-level context provider, then getting a reference to the emitter via useContext[2].
[0] https://github.com/bootrino/reactoxide/blob/master/reactoxid...
[1] https://www.npmjs.com/package/typed-emitter
[2] https://reactjs.org/docs/context.html
What are some alternatives?
pinia - 🍍 Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support
Monaco Editor - A browser based code editor
redux - A JS library for predictable global state management
mobx-react
jotai - 👻 Primitive and flexible state management for React
zustand - 🐻 Bear necessities for state management in React
nanostores - A tiny (286 bytes) state manager for React/RN/Preact/Vue/Svelte with many atomic tree-shakable stores
reselect - Selector library for Redux
SWR - React Hooks for Data Fetching
react-query - 🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query]
nanoid - A tiny (124 bytes), secure, URL-friendly, unique string ID generator for JavaScript
react-redux - Official React bindings for Redux