overreacted.io
Immer
overreacted.io | Immer | |
---|---|---|
46 | 142 | |
6,995 | 26,970 | |
- | 0.6% | |
7.3 | 7.1 | |
3 months ago | 2 days ago | |
JavaScript | JavaScript | |
GNU General Public License v3.0 or later | 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.
overreacted.io
-
Show HN: DanGPT–Dan Abramov as a GenAI with RAG
He's a React maintainer. He has a blog and a Twitter account which gained him quite some fame in the JavaScript world.
https://overreacted.io/
-
“I’m leaving my job at meta”
This is a whole thread (not a single tweet). Unfortunately Elon Musk's Twitter no longer shows threads to logged out users. :(
For convenience, I'll copy and paste the entire thread here:
1. i feel bittersweet sharing i’m leaving my job at meta in a few weeks. working in the react org at meta has been an honor. i am thankful to my past and present colleagues for taking me in, letting me make mistakes, helping me see my strengths, being kind, and sharing their time.
2. for the past three years, i kept saying i’d leave “in a year or so” but the moment never felt right. i wanted to (1) finish the new docs and (2) see a broadly usable Suspense data fetching integration shipping. after years of work from the team, both have shipped this spring.
3. i felt hesitant leaving earlier because not too long ago, leaving meta used to mean leaving the react team. that would feel too sad for me. but it is not true anymore. react has become a multi-company project, and there are several independent engineers on the team too.
4. i am staying on the react team as an independent engineer, similar to @sophiebits and @sebsilbermann . this means that i will not be actively sponsored to work full-time on react by any company, but i will stay involved in the team’s work and attend our meetings.
5. the exact nature of my future involvement is not yet clear to me. when i started on the react team seven years ago, i used to mostly write code. however, my teammates often outshine me at that, and i found myself gravitating to doing other things over time.
6. one of the things i naturally gravitated towards was explaining things. i practiced writing on http://overreacted.io, and later @rachelnabors inspired me to write http://react.dev together. i poured my heart into that project, but i bit off a bit more than i could chew.
7. what happened is that my standard for writing has gone higher but my writing ability did not. i find it difficult to write now because i can’t match the standard in my own head anymore. this will probably go away with time, but i need a little break from writing words.
8. sometimes people think i write a lot of code for react, but i haven’t been doing that for a while. aside from co-writing the new docs, the rest of my contributions in the past few years have mostly been community glue work: being a bridge between the community and the team.
9. although i enjoy this type of work, it is not sustainable to do on my own, and it has taken a toll emotionally. at some point being a single point of failure stops being fun, and i was feeling that i’m failing both the team and the community. we needed to learn to scale it up.
10. over the last year, we’ve been building a new wing of the react team focused on community glue work. i trust @Eli_White @kmiddleton14 @lunaleaps @mattcarrollcode @rickhanlonii to carry this torch in a sustainable way. i will stay very closely involved. https://twitter.com/dan_abramov/status/1644373027692462086
11. on the engineering side, i fully trust @en_JS technical leadership at Meta and @sebmarkbage technical leadership at Vercel. currently, only two companies are sponsoring employees to work full-time on React, but we’d like to onboard contributors from other companies in the future.
12. finally, a little personal note. this is not a part of some kind of a grand plan. i don’t do “plans” and “goals”. i just had a hunch that now that the things i care about are not going to fall on the floor, it’s the right moment to try something new and feel like a beginner again
13. idk what i’ll do next yet. might do some youtube, some consulting. i do feel a bit itchy to write some product code in react with a fast iteration cycle outside of a large company. maybe i’ll do a combination of all of that. i kinda want to just do nothing too. we’ll see :)
14. i feel a little relieved, a little scared, but mostly thankful. i’m grateful to @jingc for noticing me, @tomocchino for believing in me, and @sebmarkbage & @sophiebits for teaching me everything. work is people, and you’re the best i could hope for. see y’all at the weekly syncs!
15. [badge photo](https://pbs.twimg.com/media/F1fGaGwacAAiKfM?format=jpg&name=...)
-
Blogroll: the list of blogs that I like to read
Dan Abramov
-
How to take my React knowledge to the next level?
Also, Dan Abramov's blog is a must-read, if you haven't yet: https://overreacted.io/
-
RSC and the Echo of 'Presentational and Container Components'
In 2015 Dan Abramov published an article titled Presentational and Container Components.
-
Seeking recommendation for Engineering blogs that keep track of latest React patterns
Also, Dan Abramov's blog is must read, he's literally in React team, so both React patterns, and big tech best practices: https://overreacted.io/. A bit abandoned now, but still very useful.
-
Which are the best blogs for react?
https://overreacted.io/ - by far the best in my opinion. Doesn’t get much more in depth than Dan
-
Top 10 #Software #Developers who are so well-known throughout the #IT_world 💻
7️⃣ Dan Abramov - Prime Mover of Redux, a popular JavaScript library for managing application state, and a member of the React.js core team. Technology skills include programming languages such as JavaScript and #TypeScript.
-
How are some people are able to explain things 'scientifically' in terms of React?
- Reading Dan Abramov's blog: https://overreacted.io/
- What is a good resource to learn react online?
Immer
-
Comparing React state tools: Mutative vs. Immer vs. reducers
Immer is a lightweight package that simplifies working with immutable states. Immutable data structures ensure efficient data change detection, making it easier to track modifications. Additionally, they enable cost-effective cloning by sharing unchanged parts of a data tree in memory.
-
Immer VS mutative - a user suggested alternative
2 projects | 25 Jan 2024
-
Show HN: Cami.js – A No Build, Web Component Based Reactive Framework
```
It looks like it’s mutating, but both the reducers and update() uses immer* under the hood, so we still respect immutability under the hood.
Cami supports redux devtools so you can use that for time-travel debugging too!
—-
* https://github.com/immerjs/immer
- Why do we need modules at all?
-
Making Sense of React Server Components
I heard that immutability libraries like immer.js [0] help with this. Anyone go this way and had good success? Is this 'the way'?
[0]: https://immerjs.github.io/immer/
-
How We Fixed Performance With JS Object Variable Mutation
So, that's what we built, and we built it in the most obvious way — using JavaScript Proxy objects to track mutations and reflect those changes across Appsmith’s framework. Initially things looked good — it worked, aside from a few hacks to make some data types work with map and set, and we were following the example of other projects that had similar requirements. If it was good enough for them, it should be good enough for us, right?
-
The sword refers to immer, the faster and stronger immutable data js tool limu stable version released!
But is immer really the ultimate answer? The performance problem of immer is more prominent in large arrays and deep-level object scenarios. See this issue description, many authors in the community began to try to make breakthroughs, and noticed that structura and mutative, I found that it is indeed many times faster than immer as they said, but it still fails to solve the problem of both fast speed and good development experience. I will analyze the two issues in detail below.
-
Ramda: A practical functional library for JavaScript programmers
I like immer for this kind of thing: https://github.com/immerjs/immer
It gives you immutable updates without getting bogged down in FP abstractions.
-
Why my variable is being mutated if I make any changes to my data ?
I've always been a huge fan of immer for these case. For your code, it would simply turn into setGridData((prev) => produce(prev, draft => applyChanges(changes, draft)) but I recommend you go over their documentation to fully understand how it works
-
Is there a better way to do read-only types
If you're trying to make things actually immutable, Object.freeze and deep copies can clutter things up pretty good, have you considered using something like immer? (https://immerjs.github.io/immer/)
What are some alternatives?
ui.mantine.dev - Mantine UI website and components
immutability-helper - mutate a copy of data without changing the original source
react-18 - Workgroup for React 18 release.
immutable-js - Immutable persistent data collections for Javascript which increase efficiency and simplicity.
gatsby-plugin-dark-mode - A Gatsby plugin which handles some of the details of implementing a dark mode theme
redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development
didact - A DIY guide to build your own React
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.
reactjs.org - The React documentation website [Moved to: https://github.com/reactjs/react.dev]
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]
WordPress - WordPress, Git-ified. This repository is just a mirror of the WordPress subversion repository. Please do not send pull requests. Submit pull requests to https://github.com/WordPress/wordpress-develop and patches to https://core.trac.wordpress.org/ instead.
valtio - 💊 Valtio makes proxy-state simple for React and Vanilla