JavaScript: I built a server-side rendering starter project with ReactJS and Express.js
gitfudge
Posted on May 13, 2020
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.
Posted on May 13, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
October 2, 2018