Browse Source

s/Zuck/Rogers/

main
Paul O’Shannessy 11 years ago
parent
commit
f95424a08a
  1. 6
      tips/10-props-in-getInitialState-as-anti-pattern.md

6
tips/10-props-in-getInitialState-as-anti-pattern.md

@ -27,7 +27,7 @@ var MessageBox = React.createClass({
}
});
React.renderComponent(<MessageBox name="Zuck"/>, mountNode);
React.renderComponent(<MessageBox name="Rogers"/>, mountNode);
```
Better:
@ -41,7 +41,7 @@ var MessageBox = React.createClass({
}
});
React.renderComponent(<MessageBox name="Zuck"/>, mountNode);
React.renderComponent(<MessageBox name="Rogers"/>, mountNode);
```
For more complex logic:
@ -58,5 +58,5 @@ var MessageBox = React.createClass({
}
});
React.renderComponent(<MessageBox name="Zuck"/>, mountNode);
React.renderComponent(<MessageBox name="Rogers"/>, mountNode);
```

Loading…
Cancel
Save