harmon25

harmon25

React Server Components ( React Teams take on LiveView?)

Happy holidays everyone, I feel like Christmas has come early!

Posted today by the React team:
Introducing Zero-Bundle-Size React Server Components – React Blog (reactjs.org)

This looks an awful lot like LiveView - especially when combined with Surface! (about 25 minutes into the video they demonstrate what is essentially a live_patch)

I have been experimenting with rewriting a React SPA(phoenix/gql backend) into something server rendered with LiveView + Surface, have the impression that this move by the React team helps validate that decision.

RFC: React Server Components by josephsavona · Pull Request #188 · reactjs/rfcs · GitHub

The first comment on the RFC ^ likens React Server Components to technologies like ASP.NET Blazor… Wonder if all the Facebook erlang work has been towards bringing React Server Components to the erlang/elixir ecosystem?

Big shout out to all the folks involved with Phoenix + LiveView ( +Surface) for setting this trend, or maybe seeing into the future :stuck_out_tongue:

Thoughts?

Most Liked

50kudos

50kudos

What makes the React Server Components a bit cooler is interactive markup (that jsx) lives in the same tree for both client and server rendering. Client states are untouched. Their immediate format sent over the wire is smart enough to merge particular component from server into the client react tree.

Though I’m for backend solidarity :smiley: DHH on X: "Hotwire aka NEW MAGIC is finally here: An alternative approach to building modern web applications without using much JavaScript by sending HTML instead of JSON over the wire. This includes our brand-new Turbo framework and pairs with Stimulus 2.0 😍🎉🥂 https://t.co/Pa4EG8Av5E" / X

Where Next?

Popular in Discussions Top

scouten
I’m looking for a host for the server part of a small (personal) side project that I’m working on. It’s currently written in Node.js and ...
New
CharlesO
Erlang :list.nth simple, but 1 - based nth(1, [H|_]) -> H; nth(N, [_|T]) when N > 1 -> nth(N - 1, T). Elixir Enum.at … coo...
New
chulkilee
Here are the list of HTTP client libraries/wrappers, and some thoughts on HTTP client in general. I’d like to hear from others how they w...
New
AstonJ
If so I (and hopefully others!) might have some tips for you :slight_smile: But first, please say which area you’re finding most challen...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 40042 209
New
lucaong
Hello Elixir and Nerves community, I have been working for a while on an open-source embedded key-value database for Elixir, that I call...
230 14350 124
New
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36654 110
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 49084 226
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42533 114
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement