I am creating an isomorphic application using ReactJS with react-router for server-side routing purposes.
From the guide on using a reactive router on a server:
(req, res) => { match({ routes, location: req.url }, (error, redirectLocation, renderProps) => { //... else if (renderProps) { res.status(200).send(renderToString(<RoutingContext {...renderProps} />)) } //... }) }
There is almost no information about this RoutingContext. So for me it is a little unclear how this works. Is this some kind of replacement for the Router component from the responsive router (used on top of other routes)?
Any help in understanding would be truly appreciated!
source share