From 987c3c9f967583ae71ddd7073a89d16761db2a89 Mon Sep 17 00:00:00 2001 From: Fatos Morina Date: Thu, 12 Oct 2017 11:58:27 +0200 Subject: [PATCH 1/2] Put comma after If possible --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b5c09a5c..d7cdee90 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ This repo contains the source code and documentation powering [reactjs.org](http 1. `git push my-fork-name the-name-of-my-branch` 1. Go to the [reactjs.org repo](https://github.com/reactjs/reactjs.org) and you should see recently pushed branches. 1. Follow GitHub's instructions. -1. If possible include screenshots of visual changes. A Netlify build will also be automatically created once you make your PR so other people can see your change. +1. If possible, include screenshots of visual changes. A Netlify build will also be automatically created once you make your PR so other people can see your change. ## Troubleshooting From 813bd9d8797069efbd8f8d65318e42317e21f332 Mon Sep 17 00:00:00 2001 From: Fatos Morina Date: Thu, 12 Oct 2017 12:22:08 +0200 Subject: [PATCH 2/2] Add missing commas --- content/tutorial/tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/tutorial/tutorial.md b/content/tutorial/tutorial.md index 16be5c8b..416280fe 100644 --- a/content/tutorial/tutorial.md +++ b/content/tutorial/tutorial.md @@ -26,7 +26,7 @@ Once you get a little familiar with the game, feel free to close that tab, as we ### Prerequisites -We'll assume some familiarity with HTML and JavaScript but you should be able to follow along even if you haven't used them before. +We'll assume some familiarity with HTML and JavaScript, but you should be able to follow along even if you haven't used them before. If you need a refresher on JavaScript, we recommend reading [this guide](https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript). Note that we're also using some features from ES6, a recent version of JavaScript. In this tutorial, we're using [arrow functions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions), [classes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), [`let`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let), and [`const`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const) statements. You can use Babel REPL to check what ES6 code compiles to. @@ -494,7 +494,7 @@ Determining how an immutable object has changed is considerably easier. If the o #### Determining When to Re-render in React -The biggest benefit of immutability in React comes when you build simple _pure components_. Since immutable data can more easily determine if changes have been made it also helps to determine when a component requires being re-rendered. +The biggest benefit of immutability in React comes when you build simple _pure components_. Since immutable data can more easily determine if changes have been made, it also helps to determine when a component requires being re-rendered. To learn more about `shouldComponentUpdate()` and how you can build *pure components* take a look at [Optimizing Performance](/docs/optimizing-performance.html#examples).