Add react-routes and modify the server-side rendering code