How to do React-Router SSR

Would anyone be able to walk me through how server side rendering with React Router was done in the React_on_Rails project? I’m interested in how it actually works on the inside.

Study the code here:

That’s got everything you need.