DEV Community

loading...

Discussion on: Server Side Render Web Components

Collapse
steveblue profile image
Steve Belovarich Author • Edited

Server side rendering means generating html on the server, that is all. What you are describing is how server-sider rendering works in React, but how server-side rendering is handled in React does not define how server-side rendering is done everywhere.

The Lighthouse score on my personal site which uses a modified version of this SSR technique would disagree with your performance assessment. The site only takes a slight hit to performance because of the cheap server the site is hosted on, otherwise it would be 100%.

When you pulled down the branch, did you also run the node server? Something sounds amiss.

Collapse
steveblue profile image
Steve Belovarich Author • Edited

Pulled down the feature/router branch and noticed a bug with Parcel. I also updated the example so it should work out of the box now. Example is a year old, just needed a little maintenance. There seems to be some issues with styling, but that could be fixed.