Skip to content

Commit

Permalink
Revert "Update ServerRendering.md"
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Oct 8, 2015
1 parent 7c15589 commit 508fa6e
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 508fa6e

Please sign in to comment.