diff --git a/tips/01-introduction.md b/tips/01-introduction.md index c2e86c6e..c88489b9 100644 --- a/tips/01-introduction.md +++ b/tips/01-introduction.md @@ -10,4 +10,4 @@ The React tips section provides bite-sized information that can answer lots of q ## Contributing -Submit a pull request to the [React repository](https://github.com/facebook/react) following the [current tips](https://github.com/facebook/react/tree/master/docs) entries' style. If you have a recipe that needs review prior to submitting a PR you can find help in the [#reactjs channel on freenode](irc://chat.freenode.net/reactjs) or the [reactjs Google group](http://groups.google.com/group/reactjs). Also, check the [Tips Wiki](https://github.com/facebook/react/wiki/Tips-(Previously-Cookbook)) for entries in-progress and general guidelines on writing React tips. +Submit a pull request to the [React repository](https://github.com/facebook/react) following the [current tips](https://github.com/facebook/react/tree/master/docs) entries' style. If you have a recipe that needs review prior to submitting a PR you can find help in the [#reactjs channel on freenode](irc://chat.freenode.net/reactjs) or the [reactjs Google group](http://groups.google.com/group/reactjs). diff --git a/tips/10-props-in-getInitialState-as-anti-pattern.md b/tips/10-props-in-getInitialState-as-anti-pattern.md index 210530f8..bb8a3aef 100644 --- a/tips/10-props-in-getInitialState-as-anti-pattern.md +++ b/tips/10-props-in-getInitialState-as-anti-pattern.md @@ -20,7 +20,7 @@ Using props, passed down from parent, to generate state in `getInitialState` oft var MessageBox = React.createClass({ getInitialState: function() { - return {nameWithQualifier: "Mr. " + this.props.name}; + return {nameWithQualifier: 'Mr. ' + this.props.name}; }, render: function() { @@ -38,7 +38,7 @@ Better: var MessageBox = React.createClass({ render: function() { - return