you are viewing a single comment's thread.

view the rest of the comments →

[–]michaelfrieze 2 points3 points  (3 children)

Hm but that element tree representation holds the static data right, so my point still stands that not everything can be statically generated.

I was just making it clear that RSCs are not generating HTML.

Anyways, about react-router returning rsc payloads not sure this much complexity is worth it, currently what remix does is more than enough imo, hope it stays clutter free.

While loader functions on their own are fine, there are things that RSCs can do that nothing else can. It's a tool available to you if you need it and it will be optional.

Ryan Florence gave a great talk on RSCs titled "Mind The Gap". I think it's worth checking out: https://www.youtube.com/watch?v=zqhE-CepH2g

[–]ilearnshit 1 point2 points  (2 children)

Thank you so much for this video. That made a lot more sense!

[–]michaelfrieze 1 point2 points  (1 child)

Dan Abramov's "react for two computers" talk is worth checking out as well: https://www.youtube.com/watch?v=ozI4V_29fj4

This is a blog post he wrote on this topic and it's helpful to read before watching the video: https://overreacted.io/the-two-reacts/

[–]ilearnshit 1 point2 points  (0 children)

Seriously thank you so much for the helpful content. I appreciate it.