From 508fa6ed269ada7cce8168776d4583d4e5651adf Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Thu, 8 Oct 2015 12:00:32 -0400 Subject: [PATCH] Revert "Update ServerRendering.md" --- docs/guides/advanced/ServerRendering.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/guides/advanced/ServerRendering.md b/docs/guides/advanced/ServerRendering.md index 8f8be3a820..0c34193e00 100644 --- a/docs/guides/advanced/ServerRendering.md +++ b/docs/guides/advanced/ServerRendering.md @@ -16,14 +16,12 @@ It looks something like this with an imaginary JavaScript server: ```js import { renderToString } from 'react-dom/server' import { match, RoutingContext } from 'react-router' -import createLocation from 'history/lib/createLocation' import routes from './routes' serve((req, res) => { // Note that req.url here should be the full URL path from // the original request, including the query string. - const location = createLocation(req.url); - match({ routes, location }, (error, redirectLocation, renderProps) => { + match({ routes, location: req.url }, (error, redirectLocation, renderProps) => { if (error) { res.send(500, error.message) } else if (redirectLocation) {