Skip to content

Commit

Permalink
fix: resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Yucohny authored Sep 15, 2023
1 parent 9943537 commit a1673f5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/content/reference/react/Component.md
Original file line number Diff line number Diff line change
Expand Up @@ -812,13 +812,8 @@ class Rectangle extends Component {

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

<<<<<<< HEAD
- `nextProps`:组件将从其父组件接收的下一个 props。将 `nextProps` 与 [`this.props`](#props) 进行比较以确定发生了什么变化。
- `nextContext`:组件将从最近的提供者处接收的下一个 props。将 `nextContext` 与 [`this.context`](#context) 进行比较以确定发生了什么变化。仅当你指定 [`static contextType`](#static-contexttype)(更新的)或 [`static contextTypes`](#static-contexttypes)(旧版)时才可用。
=======
- `nextProps`: The next props that the component is about to receive from its parent component. Compare `nextProps` to [`this.props`](#props) to determine what changed.
- `nextContext`: The next context that the component is about to receive from the closest provider. Compare `nextContext` to [`this.context`](#context) to determine what changed. Only available if you specify [`static contextType`](#static-contexttype) (modern) or [`static contextTypes`](#static-contexttypes) (legacy).
>>>>>>> bdc60c26848820239db732b7218d41f4c2b204af
- `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 a1673f5

Please sign in to comment.