Post #2032954
2023-02-07 20:28 UTC
@zachleat The thing that drives be absolutely **batty** is that it's always been pretty straightforward to use React in an "island" scenario. Like, a mostly server-rendered app written in any language could just carve out one piece of DOM on some screen and hand it over to a lazy-loaded React. And yet…nobody really seems to do this. React takes over not only the whole page but the whole damn app! Why?? What is it about React that leads people to think that's how it's *supposed* to work?
Replies (2)
-
@zachleat@fediverse.zachleat.com 2023-02-07 20:32
@jaredwhite React world is still (unwisely) resisting Islands though and you can see it in the Create React App GitHub issue comment from Dan Abramov.
-
@wolfr@mastodon.social 2023-02-07 21:41
@jaredwhite at my workplace there's plenty of React “apps” that sit on top of a legacy codebase