Divar-starter-kit: How do we do SSR in Divar.ir


git clone https://github.com/divar-ir/divar-starter-kit.git
cd divar-starter-kit
yarn start

Divar website from past to present

Our “previous” approach for doing SSR

Problems with the “previous” approach

Revision to SSR approch

Using divar-starter-kit

Example of how to use the serverSideInitial method
How to get values from SSR with withSSRData HOC

Divar-starter-kit in depth

Usage of context in initial render. src / server / handlers / ssr-handler.js



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store