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

twitter logo github logo ・1 min read

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 does this with rails but not sure how the integration level between preact and the HTML happens.

Thanks 🙏

twitter logo DISCUSS
Classic DEV Post from Dec 31 '18

Who's looking for open source contributors? (Dec 31st edition)

Find something to work on or promote your project here. Please shamelessly pro...

David Alberto Adler profile image