Skip to content

Commit

Permalink
docs(en): merge reactjs.org/main into zh-hans.reactjs.org/main @ bdc60c2
Browse files Browse the repository at this point in the history
  • Loading branch information
Yucohny authored Sep 15, 2023
2 parents 478fb75 + a1673f5 commit 581b50d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/reference/react/Component.md
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,8 @@ class Rectangle extends Component {

#### 参数 {/*unsafe_componentwillreceiveprops-parameters*/}

- `nextProps`组件将从其父组件接收的下一个 props。 `nextProps` 与 [`this.props`](#props) 进行比较以确定发生了什么变化
- `nextContext`组件将从最近的提供者处接收的下一个 props。将 `nextContext` 与 [`this.context`](#context) 进行比较以确定发生了什么变化。仅当你指定 [`static contextType`](#static-contexttype)(更新的)或 [`static contextTypes`](#static-contexttypes)(旧版)时才可用
- `nextProps`组件即将从父组件接收的下一个 props。可以将 `nextProps` 与 [`this.props`](#props) 进行比较以确定具体是什么地方发生了变化
- `nextContext`组件即将从最近的 provider 中接收的下一个 context。可以将 `nextContext` 与 [`this.context`](#context) 进行比较以确定具体是什么地方发生了变化。仅在指定 [`static contextType`](#static-contexttype))(最新用法)或 [`static contextTypes`](#static-contexttypes) 时可用(传统用法)

#### 返回值 {/*unsafe_componentwillreceiveprops-returns*/}

Expand Down

0 comments on commit 581b50d

Please sign in to comment.