Server Components #2879
Replies: 4 comments 10 replies
-
Extracting static tress is something that's been on our mind for a while so we are very interested in that. The work in To quote Jason:
Rest assured that we'll keep pushing the boundaries for smaller sites and quicker boot up times. |
Beta Was this translation helpful? Give feedback.
-
Indeed. The result (HTML with islands of interactivity) is something we've already been executing around, but the specific technical approach React is using is not in line with Preact's goals. Preact aims to provide a platform-oriented take on VDOM, and as such we stick to using HTML to describe documents. It would certainly be possible to build out the wire protocol and client hydration similar to what they showed, and I'm sure folks will do this atop Preact as add-ons. For now though, we have other avenues to compiling applications to progressively-enhanced HTML that work with static hosting and prerendering too. |
Beta Was this translation helpful? Give feedback.
-
@marvinhagemeister is the JSX plugin you made that compiles JSX to HTML still the favored approach? https://twitter.com/marvinhagemeist/status/1370041302935560194?s=21&t=80LTIJFd9Pq3eFROO6OKXA |
Beta Was this translation helpful? Give feedback.
-
Would be great to get an update here so Preact also allows async server-only components, now that
|
Beta Was this translation helpful? Give feedback.
-
This is going to be a bigger impact than Hooks were (IMO)
Professionally I adopted Preact on SSR'd sites for 3 core reasons:
I don't want to lose these by moving from Preact, but this announcement throws a spanner in the works as the examples are pretty mind-blowing.
What are everyone's thoughts here? I imagine this is FAR from a simple compat layer (given the intermediate format, streaming support etc)
Beta Was this translation helpful? Give feedback.
All reactions