Merge pull request #9 from shermanhui/patch-2

Update README.md
This commit is contained in:
Artem Zakharchenko 2021-01-17 09:38:30 +01:00 committed by GitHub
commit eb900bba3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ class MenuItem {
}
```
## Reflect expected result
## Reflect the expected result
A name should reflect the expected result.
@ -123,7 +123,7 @@ Take a look at how this pattern may be applied in the table below.
| `handleClickOutside` | | `handle` | `Click` | `Outside` |
| `shouldDisplayMessage` | `should` | `Display` | `Message` | |
> **Note:** The order of context affects the meaning of a variable. For example, `shouldUpdateComponent` means _you_ are about to update a component, while `shouldComponentUpdate` tells you that _component_ will update on itself, and you are but controlling whether it should do that right now.
> **Note:** The order of context affects the meaning of a variable. For example, `shouldUpdateComponent` means _you_ are about to update a component, while `shouldComponentUpdate` tells you that _component_ will update on itself, and you are but controlling when it should be updated.
> In other words, **high context emphasizes the meaning of a variable**.
---
@ -179,7 +179,7 @@ console.log(fruits) // 5
### `fetch`
Requests for a data, which takes time (i.e. async request).
Request for some data, which takes some indeterminate time (i.e. async request).
```js
function fetchPosts(postCount) {
@ -309,11 +309,11 @@ function shouldUpdateUrl(url, expectedUrl) {
### `min`/`max`
Represent minimum or maximum value. Used when describing boundaries or limits.
Represents a minimum or maximum value. Used when describing boundaries or limits.
```js
/**
* Renders random amount of posts within
* Renders a random amount of posts within
* the given min/max boundaries.
*/
function renderPosts(posts, minPosts, maxPosts) {