Skip to content

Commit

Permalink
Merge pull request reduxjs#1359 from svenanders/patch-1
Browse files Browse the repository at this point in the history
Update ServerRendering.md
  • Loading branch information
gaearon committed Feb 3, 2016
2 parents 6281114 + a23f5ec commit 511fe67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/recipes/ServerRendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ import { renderToString } from 'react-dom/server'
function handleRender(req, res) {
// Read the counter from the request, if provided
const params = qs.parse(req.query)
const counter = parseInt(params.counter) || 0
const counter = parseInt(params.counter, 10) || 0

// Compile an initial state
let initialState = { counter }
Expand Down Expand Up @@ -242,7 +242,7 @@ function handleRender(req, res) {
fetchCounter(apiResult => {
// Read the counter from the request, if provided
const params = qs.parse(req.query)
const counter = parseInt(params.counter) || apiResult || 0
const counter = parseInt(params.counter, 10) || apiResult || 0

// Compile an initial state
let initialState = { counter }
Expand Down

0 comments on commit 511fe67

Please sign in to comment.