You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What do you think about adding memo() support to preact-render-to-string in order to reduce rendering time?
Why?
Rendering for many requests can be time-consuming, and many websites require server-side rendering (SSR).
I have been developing a Spring Boot <-> Preact bridge for over the past 8 months and I have plans to share it as open source to fill technology space.
How my Spring Boot <-> Preact monolith project works?
On the back-end Spring Boot injects objects into template,
On back-end site Preact application uses injected data doing SSR,
On front-end site Preact application uses SSR HTML or renders new one if missing.
My Spring Boot <-> Preact monolith project summary:
Spring Boot application uses Preact as a template engine on the back-end side (SSR).
The same Preact application can run on the front-end side with full hydration.
Communication between Spring Boot and Preact is accomplished without the HTTP protocol, which reduces the time needed to send data (just stdin, stdout, and stderr with a custom, lightweight binary protocol).
I have created server components (Preact components).
In production mode, files are served from static resources. In development mode, all things are served using a proxy.
In development mode hot reloading and JS/SCSS mappings work perfectly.
Preact front-end, Preact back-end, and Spring Boot back-end debugging work perfectly also.
I have solved SSR issues related to code splitting, styling, and styles ordering, making them work even when new modules are loaded dynamically.
Etc.
I am able to convert existing logic to different backends, such as ASP.NET, Python, PHP, Node.js, etc., in an easy way.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
What do you think about adding
memo()
support topreact-render-to-string
in order to reduce rendering time?Why?
How my Spring Boot <-> Preact monolith project works?
My Spring Boot <-> Preact monolith project summary:
I am able to convert existing logic to different backends, such as ASP.NET, Python, PHP, Node.js, etc., in an easy way.
Beta Was this translation helpful? Give feedback.
All reactions