Skip to content

Commit

Permalink
[docs] make param name consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jstoebel authored and ljharb committed Oct 8, 2017
1 parent 0ae762f commit 21871ec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/api/ReactWrapper/setProps.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `.setProps(props[, callback]) => Self`
# `.setProps(nextProps[, callback]) => Self`

A method that sets the props of the root component, and re-renders. Useful for when you are
wanting to test how the component behaves over time with changing props. Calling this, for
Expand All @@ -12,7 +12,7 @@ NOTE: can only be called on a wrapper instance that is also the root instance.

#### Arguments

1. `props` (`Object`): An object containing new props to merge in with the current props
1. `nextProps` (`Object`): An object containing new props to merge in with the current props
2. `callback` (`Function` [optional]): If provided, the callback function will be executed once setProps has completed


Expand Down
4 changes: 2 additions & 2 deletions docs/api/ReactWrapper/setState.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `.setState(state[, callback]) => Self`
# `.setState(nextState[, callback]) => Self`

A method to invoke `setState()` on the root component instance similar to how you might in the
definition of the component, and re-renders. This method is useful for testing your component
Expand All @@ -11,7 +11,7 @@ NOTE: can only be called on a wrapper instance that is also the root instance.

#### Arguments

1. `state` (`Object`): An object containing new state to merge in with the current state
1. `nextState` (`Object`): An object containing new state to merge in with the current state
2. `callback` (`Function` [optional]): If provided, the callback function will be executed once setState has completed


Expand Down
4 changes: 2 additions & 2 deletions docs/api/ShallowWrapper/setProps.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `.setProps(props) => Self`
# `.setProps(nextProps) => Self`

A method that sets the props of the root component, and re-renders. Useful for when you are
wanting to test how the component behaves over time with changing props. Calling this, for
Expand All @@ -12,7 +12,7 @@ NOTE: can only be called on a wrapper instance that is also the root instance.

#### Arguments

1. `props` (`Object`): An object containing new props to merge in with the current state
1. `nextProps` (`Object`): An object containing new props to merge in with the current state



Expand Down
4 changes: 2 additions & 2 deletions docs/api/ShallowWrapper/setState.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `.setState(state[, callback]) => Self`
# `.setState(nextState[, callback]) => Self`

A method to invoke `setState()` on the root component instance similar to how you might in the
definition of the component, and re-renders. This method is useful for testing your component
Expand All @@ -11,7 +11,7 @@ NOTE: can only be called on a wrapper instance that is also the root instance.

#### Arguments

1. `state` (`Object`): An object containing new state to merge in with the current state
1. `nextState` (`Object`): An object containing new state to merge in with the current state
2. `callback` (`Function` [optional]): If provided, the callback function will be executed once setState has completed


Expand Down

0 comments on commit 21871ec

Please sign in to comment.