From 4dbb8b307c57f6b82b42f47c6c79880b6f00bb2f Mon Sep 17 00:00:00 2001 From: Kohei TAKATA Date: Wed, 8 Jul 2015 08:24:42 +0900 Subject: [PATCH] Enclose a value of variable in back quote --- docs/docs/08-working-with-the-browser.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/08-working-with-the-browser.md b/docs/docs/08-working-with-the-browser.md index be4500b3d9..81da8bd122 100644 --- a/docs/docs/08-working-with-the-browser.md +++ b/docs/docs/08-working-with-the-browser.md @@ -83,7 +83,7 @@ React provides lifecycle methods that you can specify to hook into this process. ### Updating * `componentWillReceiveProps(object nextProps)` is invoked when a mounted component receives new props. This method should be used to compare `this.props` and `nextProps` to perform state transitions using `this.setState()`. -* `shouldComponentUpdate(object nextProps, object nextState): boolean` is invoked when a component decides whether any changes warrant an update to the DOM. Implement this as an optimization to compare `this.props` with `nextProps` and `this.state` with `nextState` and return false if React should skip updating. +* `shouldComponentUpdate(object nextProps, object nextState): boolean` is invoked when a component decides whether any changes warrant an update to the DOM. Implement this as an optimization to compare `this.props` with `nextProps` and `this.state` with `nextState` and return `false` if React should skip updating. * `componentWillUpdate(object nextProps, object nextState)` is invoked immediately before updating occurs. You cannot call `this.setState()` here. * `componentDidUpdate(object prevProps, object prevState)` is invoked immediately after updating occurs.