←back to thread

298 points sangeeth96 | 1 comments | | HN request time: 0s | source
Show context
hollowturtle ◴[] No.46238501[source]
Wouldn't make more sense keeping React smaller and left those features to frameworks? I liked it more when it was marketed as the View in MVC. Surely can still be used like that today but it still feels bloated
replies(2): >>46238608 #>>46239099 #
TZubiri ◴[] No.46239099[source]
But the react-components are a separate library, they are not installed by default
replies(1): >>46239180 #
hollowturtle ◴[] No.46239180[source]
? afaik react server components made it to core
replies(1): >>46239506 #
silverwind ◴[] No.46239506[source]
They shouldn't be loaded in a React SPA at least, e.g. `react-dom` and `react` packages should be unaffected.
replies(1): >>46241007 #
TZubiri ◴[] No.46241007[source]
So they are part of the standard distribution (like through npm install react), but are unused by default? Something like that?
replies(1): >>46242313 #
1. danabramov ◴[] No.46242313{3}[source]
This code doesn’t exist in `react` or `react-dom`, no. Packages are released in lockstep to avoid confusion which is why everything got a version bump.

The vulnerable packages are the ones starting with `react-server-` (like `react-server-dom-webpack') or anything that vendors their code (like `next` does).