Skip to content

Commit 941d477

Browse files
authored
Update space error
1 parent b2c1a5a commit 941d477

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

content/docs/state-and-lifecycle.md

-2
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ this.setState({
356356

357357
이를 수정하기 위해 객체보다는 함수를 인자로 사용하는 다른 형태의 `setState()`를 사용합니다. 그 함수는 이전 state를 첫 번째 인자로 받아들일 것이고, 업데이트가 적용된 시점의 props를 두 번째 인자로 받아들일 것입니다.
358358

359-
360359
```js
361360
// Correct
362361
this.setState((state, props) => ({
@@ -366,7 +365,6 @@ this.setState((state, props) => ({
366365

367366
위에서는 [화살표 함수](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/Arrow_functions)를 사용했지만, 일반적인 함수에서도 정상적으로 작동합니다.
368367

369-
370368
```js
371369
// Correct
372370
this.setState(function(state, props) {

0 commit comments

Comments
 (0)