loading...

JavaScript: I built a server-side rendering starter project with ReactJS and Express.js

dbigpot profile image dbigpot ・1 min read

Let's keep this short.
Here's the link to the repository - react-ssr-starter

Motivation

Having worked with ReactJS for over two years now, the one issue I've always had with it was the initial render time. The script files always needed to be fetched from the server first and then ReactJS starts reading your bundle and renders your project. This was rather slow, especially in cases where I wanted to host a simple page that shows me daily reports for my apps. I've always known that server-side rendering greatly improved the first-time load performance but till now, I'd only ever used templating engines like Pug for SSR and never tried building an SSR project with both ReactJS and Express.

After a lot of trial and errors, and understanding why certain things don't work(even though they make logical sense), I built this starter project for you to clone and get started with your development work without having to worry about setting up the project from scratch but worry only about the core logic of what you're trying to build.

Contribution

Feel free to dive in! Open an issue or submit PRs. There's always something we can all learn.

Feedback

I'm always open to hearing from you about what you have to say. If you have any questions, I'll be glad to answer them. Cheers!

Stay home. Stay safe. Wash your hands.

Discussion

pic
Editor guide