Skip to content

Commit 68e4efc

Browse files
authored
Added missing comma and removed a few redundant words (#3725)
1 parent ff68780 commit 68e4efc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

content/docs/forms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ redirect_from:
99
- "docs/forms-zh-CN.html"
1010
---
1111

12-
HTML form elements work a little bit differently from other DOM elements in React, because form elements naturally keep some internal state. For example, this form in plain HTML accepts a single name:
12+
HTML form elements work a bit differently from other DOM elements in React, because form elements naturally keep some internal state. For example, this form in plain HTML accepts a single name:
1313

1414
```html
1515
<form>

content/docs/hello-world.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ React is a JavaScript library, and so we'll assume you have a basic understandin
4040

4141
>Note
4242
>
43-
>This guide occasionally uses some of the newer JavaScript syntax in the examples. If you haven't worked with JavaScript in the last few years, [these three points](https://gist.github.com/gaearon/683e676101005de0add59e8bb345340c) should get you most of the way.
43+
>This guide occasionally uses some newer JavaScript syntax in the examples. If you haven't worked with JavaScript in the last few years, [these three points](https://gist.github.com/gaearon/683e676101005de0add59e8bb345340c) should get you most of the way.
4444
4545

4646
## Let's Get Started! {#lets-get-started}

content/docs/lists-and-keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ A good rule of thumb is that elements inside the `map()` call need keys.
207207

208208
### Keys Must Only Be Unique Among Siblings {#keys-must-only-be-unique-among-siblings}
209209

210-
Keys used within arrays should be unique among their siblings. However they don't need to be globally unique. We can use the same keys when we produce two different arrays:
210+
Keys used within arrays should be unique among their siblings. However, they don't need to be globally unique. We can use the same keys when we produce two different arrays:
211211

212212
```js{2,5,11,12,19,21}
213213
function Blog(props) {

content/docs/thinking-in-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ To make your UI interactive, you need to be able to trigger changes to your unde
8484

8585
To build your app correctly, you first need to think of the minimal set of mutable state that your app needs. The key here is [DRY: *Don't Repeat Yourself*](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself). Figure out the absolute minimal representation of the state your application needs and compute everything else you need on-demand. For example, if you're building a TODO list, keep an array of the TODO items around; don't keep a separate state variable for the count. Instead, when you want to render the TODO count, take the length of the TODO items array.
8686

87-
Think of all of the pieces of data in our example application. We have:
87+
Think of all the pieces of data in our example application. We have:
8888

8989
* The original list of products
9090
* The search text the user has entered

0 commit comments

Comments
 (0)