DEV Community

David Alberto Adler
David Alberto Adler

Posted on

2 2

How does server side rendering integrate with client side react / preact?

I would like to build a web app with server side rendered HTML (ideally using preact on the backend) and then have preact progressively take over the interface in a lazy fashion to control onClick bindings and other events.

The main point is I don't want the loading of javascript libraries to have any impact on initial rendering speed.

What are some best practices and examples of this being done?

I am aware http://dev.to does this with rails but not sure how the integration level between preact and the HTML happens.

Thanks 🙏

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay