Skip to content

Commit

Permalink
Merge pull request remix-run#2210 from timdorr/revert-2192-patch-1
Browse files Browse the repository at this point in the history
Revert "Update ServerRendering.md"
  • Loading branch information
knowbody committed Oct 8, 2015
2 parents 7c15589 + 508fa6e commit ebaf437
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/guides/advanced/ServerRendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ebaf437

Please sign in to comment.