-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Fix a few typos and add a few suggestions #160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Deploy preview ready! Built with commit 64d4936 |
@@ -67,7 +67,7 @@ Jay Garcia spent a lot of time during the beta working on a NES music player wit | |||
|
|||
## React Native with Babel and webpack | |||
|
|||
React Native ships with a custom packager and custom ES6 transforms instead of using what the open source community settled on such as webpack and Babel. The main reason for this is performance – we couldn't get those tools to have sub-second reload time on a large codebase. | |||
React Native ships with a custom packager and custom ES6 transforms instead of using what the open source community settled on such as [webpack] (https://webpack.js.org/) and [Babel](http://babeljs.io/). The main reason for this is performance – we couldn't get those tools to have sub-second reload time on a large codebase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There shouldn't be a space after [webpack]
because most Markdown engines will not treat this as a link (See the preview for this file).
content/docs/installation.md
Outdated
@@ -40,9 +40,9 @@ cd my-app | |||
npm start | |||
``` | |||
|
|||
Create React App doesn't handle backend logic or databases; it just creates a frontend build pipeline, so you can use it with any backend you want. It uses build tools like Babel and webpack under the hood, but works with zero configuration. | |||
`Create React App` doesn't handle backend logic or databases; it just creates a frontend build pipeline, so you can use it with any backend you want. It uses build tools like [Babel] (http://babeljs.io/) and [webpack] (http://babeljs.io/) under the hood, but works with zero configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The webpack link is incorrect. Will be good to reomve the spaces as well as mentioned earlier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think Create React App should be formatted as code. "Create React App" is a title, vs create-react-app
which is the tool.
Update webpack link, remove spaces, unhighlight `Create React App`
@yangshun Thanks for your review. I pushed the updates. Please take a look. |
@@ -67,7 +67,7 @@ Jay Garcia spent a lot of time during the beta working on a NES music player wit | |||
|
|||
## React Native with Babel and webpack | |||
|
|||
React Native ships with a custom packager and custom ES6 transforms instead of using what the open source community settled on such as webpack and Babel. The main reason for this is performance – we couldn't get those tools to have sub-second reload time on a large codebase. | |||
React Native ships with a custom packager and custom ES6 transforms instead of using what the open source community settled on such as [webpack](https://webpack.js.org/) and [Babel](http://babeljs.io/). The main reason for this is performance – we couldn't get those tools to have sub-second reload time on a large codebase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, just a couple more nits which I should have caught earlier. Would be good to use https://babeljs.io/ instead of http://babeljs.io/ (they should probably do a redirect)
content/docs/installation.md
Outdated
|
||
When you're ready to deploy to production, running `npm run build` will create an optimized build of your app in the `build` folder. You can learn more about Create React App [from its README](https://github.com/facebookincubator/create-react-app#create-react-app-) and the [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#table-of-contents). | ||
When you're ready to deploy to production, running `npm run build` will create an optimized build of your app in the `build` folder. You can learn more about `Create React App` [from its README](https://github.com/facebookincubator/create-react-app#create-react-app-) and the [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#table-of-contents). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create React App
shouldn't be in quotes
@yangshun I made these new updates as well. Can you please take a look? Thanks in advance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool 👍
@@ -66,7 +66,7 @@ See the [React.Component API Reference](/docs/react-component.html) for a list o | |||
|
|||
### `React.PureComponent` | |||
|
|||
`React.PureComponent` is exactly like [`React.Component`](#reactcomponent) but implements [`shouldComponentUpdate()`](/docs/react-component.html#shouldcomponentupdate) with a shallow prop and state comparison. | |||
`React.PureComponent` is exactly like [`React.Component`](#reactcomponent), but implements [`shouldComponentUpdate()`](/docs/react-component.html#shouldcomponentupdate) with a shallow prop and state comparison. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I don't think this comma is necessary?
implements
shouldComponentUpdate()
with a shallow prop and state comparison.
This ^ isn't an independent clause. Maybe it's an appositive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What am I doing with my life... 🤡
Sync with reactjs.org @ c0f4b34
This Pull Request includes a few typos (like missing colons and commas), and also hyperlinks Babel and webpack.