@samitouri / QOS-React-2 / commits / cbec8c1a89

fix 2 more entries

Cheng Lou committed Oct 29, 2013 at 14:20 UTC cbec8c1a890c809f104d826d970f41a4498e38fb
2 files changed +4 -3
docs/cookbook/11-dom-event-listeners.md
+2 -2
@@ -24,10 +24,10 @@ var Box = React.createClass({
24 this.setState({windowWidth: window.innerWidth});
25 },
26 componentDidMount: function() {
27 - window.addEventListener("resize", this.handleResize);
27 + window.addEventListener('resize', this.handleResize);
28 },
29 componentWillUnmount: function() {
30 - window.removeEventListener("resize", this.handleResize);
30 + window.removeEventListener('resize', this.handleResize);
31 },
32 render: function() {
33 return <div>Current window width: {this.state.windowWidth}</div>;
docs/cookbook/12-initial-ajax.md
+2 -1
@@ -41,6 +41,7 @@ var UserGist = React.createClass({
41 });
42
43 React.renderComponent(
44 - <UserGist source="https://api.github.com/users/octocat/gists" />, mountNode
44 + <UserGist source="https://api.github.com/users/octocat/gists" />,
45 + mountNode
46 );
47 ```