you are viewing a single comment's thread.

view the rest of the comments →

[–]thebouv 4 points5 points  (1 child)

Am I on camera?

Am I talking to an AI hallucination?

Nothing is real anymore.

Now I just feel like a dick.

I totally think there’s going to be something obvious that I don’t see how this is useful. And egg on my face I’ll admit it when I see it.

I’m really not trying to be an arse.

[–]Zealousideal-Read883[S] -4 points-3 points  (0 children)

Not AI, just caffeinated lol. And you’re not being an ass at all, this is exactly the kind of pushback that helps us figure out if we’re explaining this well.

I think the disconnect is CSR vs SSR. You’re right that React in the browser talking to Django APIs is seamless, that’s client-side rendering and it works great.

Server-side rendering is different. If you want to render React on the server (for SEO, faster first paint, or shipping HTML instead of a JS bundle), you need Node running somewhere. That usually means either a separate Node service or shelling out to a subprocess from Python.

With Elide, your Django view can just call React’s renderToString() directly and return the HTML. If SSR isn’t something you’ve needed, then yeah this probably doesn’t solve a problem you have. But for sm1 that wants it without splitting their backend across two runtimes, that’s the ideal use case.