Skip to content

Commit

Permalink
Merge pull request facebook#4310 from tako-black/enclose_a_value_of_v…
Browse files Browse the repository at this point in the history
…ariable_in_back_quote

Enclose a value of variable in back quote
  • Loading branch information
jimfb committed Jul 7, 2015
2 parents abf965c + 4dbb8b3 commit ed0d41b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/08-working-with-the-browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit ed0d41b

Please sign in to comment.