Basically, you have to familiarise yourself with few concepts related to SSR:
You can find a lot of blog post about the subject, but the best way is to get your hands dirty and start coding after you understand the concepts above.
I have started to write a short recap about the subject, it's a work in progress but you can still check it out here: