Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
acemarke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
acemarke
2y ago
Some of the main points I had: - At least _mentioning_ Vite directly on the "Create a Project" page _is_ genuinely a step in the right direction. That said, they're going out of their way to still not just directly say "
32.
▲
by
acemarke
2y ago
Pleased to say I had a meaningful hand in this :) As some background, this finally happened because: - React 19 broke CRA - I griped about it loudly on Bluesky ( https://bsky.app/profile/acemarke.dev/post/3lgg
33.
▲
Sunsetting Create React App
(react.dev)
128 points
by
acemarke
2y ago
|
146 comments
34.
▲
by
acemarke
2y ago
Modern Yarn (currently on 4.x) works great. We use it in the Redux library repos. I don't think it ever hit a majority of usage, but the tool itself is solid. That said, yeah, PNPM has gotten more popularity lately.
35.
▲
by
acemarke
2y ago
I know Chris well enough from his writing and some conversations that I can vouch that "resume-driven development" is absolutely _not_ his motivation here. Chris is one of the most thoughtful and insightful engineers I can think o
36.
▲
by
acemarke
2y ago
Oh hey, that's my post :) I keep collecting more links and more points that I need to add in an update to that post. The latest thing we're running into is a conflict between the `browser` field in `package.json`, which some tools
37.
▲
by
acemarke
2y ago
I don't understand any of the statements in this post. They don't seem to form a coherent argument, and they don't match my understanding of how lockfiles work. There's a bunch of very strongly worded statements ("h
38.
▲
by
acemarke
2y ago
FWIW, with modern Redux Toolkit you _don't_ write handwritten nested immutable update logic - you write normal "mutating" code in a reducer and it becomes an immutable update thanks to the Immer library: - https://
39.
▲
by
acemarke
2y ago
What specifically are you referring to? The original `createClass` API was indeed deprecated and removed all the way back in 2017 [0]. You can still use them today with the separated `create-react-class` package. ES6 class components still
40.
▲
by
acemarke
2y ago
Yeah, _we library maintainers_ are feeling the same way :) - https://bsky.app/profile/acemarke.dev/post/3lcitbmmfss2i Big picture as I understand it: The legacy and always-undocumented-but-everyone-knew-about
41.
▲
by
acemarke
2y ago
Yes, React uses semver. React 19 has been in development for over 2+ years - React 18.2 (the last meaningful minor release) came out in June 2022, so the release pace has been slow enough people have complained that it's _too_ slow: -
42.
▲
by
acemarke
2y ago
Hmm, that is a good point that `useActionState` accepts a reducer-like function (although I think it's async in this case?). And yeah, half of Redux's terminology is simply because the existing Flux Architecture libraries from the
43.
▲
by
acemarke
2y ago
The React Compiler is currently in beta: https://react.dev/blog/2024/10/21/react-compiler-beta-releas... That said, it doesn't change the APIs included in React itself, or the overall usage patterns
44.
▲
by
acemarke
2y ago
FWIW, both Redux and Mobx were invented in 2015.
45.
▲
by
acemarke
2y ago
I maintain Redux, and I don't think Redux inspired this particular term usage (which came from the "Flux Architecture" pattern.) As far as I know this usage ultimately derives from HTML `<form action={}>`.
46.
▲
by
acemarke
2y ago
It can be more complex than that. When we shipped React-Redux v8, we rewrote our internals to drop our own subscription management logic, and switched to React's new `useSyncExternalStore` hook instead. However, `uSES` only was added
47.
▲
by
acemarke
2y ago
Are you maybe thinking of this classic post? - https://archive.jlongster.com/Removing-User-Interface-Comple...
48.
▲
by
acemarke
2y ago
This article is the canonical recap of what's happened: - https://joshcollinsworth.com/blog/fire-matt
49.
▲
by
acemarke
2y ago
Seems like this is basically Rescript or Elm - a completely different language with the ability to interop with JS.
50.
▲
by
acemarke
2y ago
In addition to the excellent "Didact" article that explains how to _build_ React and its internals, I have an extensive "Guide to React Rendering Behavior" post that explains the user-visible behavior and mental model of
51.
▲
React Compiler Beta Release
(react.dev)
8 points
by
acemarke
2y ago
|
0 comments
52.
▲
by
acemarke
2y ago
The biggest thing most people don't understand is that React re-renders recursively by default, regardless of whether any particular child component's props actually changed or not. Most of its behavior patterns follow from that o
53.
▲
by
acemarke
2y ago
This seems to be a pretty low-effort post without any real substantive details. I'd much rather see discussion of the "Parallel Evolution of React and Web Components" article that got posted earlier today. I don't agree
54.
▲
The official "Redux Essentials" tutorial, revamped: TS and better explanations
(redux.js.org)
2 points
by
acemarke
2y ago
|
1 comments
55.
▲
by
acemarke
2y ago
Hiya, folks! I am *thrilled* to announce that: The revised "Redux Essentials" tutorial is now LIVE!!! Changes in this reworked version: - 100% TS example app and usage - Better concept explanations - Covers additional concepts (&q
56.
▲
by
acemarke
2y ago
As the author of that original Redux docs tutorial and data flow graph, happy to see it being used as an example here :)
57.
▲
by
acemarke
2y ago
Hi, I'm a Redux maintainer. I don't work on the DevTools much myself - that's mostly handled by @methuselah96 . That said, the last comment he made about the status of the extension is: > Fortunately Redux DevTools still w
58.
▲
by
acemarke
2y ago
Yes, here's a few excellent articles that explain what problems build tools solve and why they exist: - https://sunsetglow.net/posts/frontend-build-systems.html - https://www.innoq.com/en/arti
59.
▲
by
acemarke
2y ago
The `react-dom` NPM package includes multiple different JS bundles that are used for different purposes. See that `unpkg` link I pasted in the parent comment. There's 3 different flavors of `react-dom` for use in the client (dev, prod
60.
▲
by
acemarke
2y ago
That bundle size + the size of your component. Just created a fresh Vite+React app and rendered a "hello world" component, and the resulting output is: dist/assets/index-uoOveHrm.js 142.66 kB │ gzip: 45.76 kB
More ›