Switching from React to Preact (Server-side Rendering with JavaScript Frameworks)

Switching from React to Preact (Server-side Rendering with JavaScript Frameworks)


13 thoughts on “Switching from React to Preact (Server-side Rendering with JavaScript Frameworks)

  1. What an ugly workaround!! Why would you duplicate data twice on the client side? Preact sucks

  2. just putting it out there, but using the serialize-javascript library instead of JSON.stringify would help in preventing XSS attacks. Just using JSON .stringify in this or similar instances, could potentially leave you vulnerable….

  3. I think the reason behind the facts getting duplicated is because we are importing bundle.js (client side preact) into index.html. Removing that can also ensure that only the server-side rendered preact is loaded. Pardon my english and terminology. A truly great tutorial this is.

Leave a Reply

Your email address will not be published. Required fields are marked *