mirror of
https://github.com/kettanaito/naming-cheatsheet.git
synced 2025-08-09 14:55:01 +02:00
Update README.md
This commit is contained in:
committed by
GitHub
parent
81b823d425
commit
1099890560
@ -230,7 +230,7 @@ if (isBlue && isPresent) {
|
||||
```
|
||||
|
||||
#### `has`
|
||||
Describes whether the current context possesses a certain value or state.
|
||||
Describes whether the current context possesses a certain value or state (returns `Boolean`).
|
||||
|
||||
```js
|
||||
/* Bad */
|
||||
@ -263,7 +263,7 @@ function PostsList() {
|
||||
```
|
||||
|
||||
#### `prev`/`next`
|
||||
Indicate the previous and the next state of a variable in the current context. Useful for describing a state transition.
|
||||
Indicate the previous and the next state of a variable in the current context. Useful for describing state transitions.
|
||||
|
||||
```jsx
|
||||
function fetchPosts() {
|
||||
|
Reference in New Issue
Block a user