Skip to content

Commit

Permalink
[docs] Removes references to lifecycleExperimental in the docs; adds …
Browse files Browse the repository at this point in the history
…React 16 block to contributing doc

Fixes #1303.
  • Loading branch information
maurocarrero authored and ljharb committed Nov 4, 2017
1 parent 68f1959 commit e435194
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -39,6 +39,10 @@ npm run react:14
npm run react:15
```

```bash
# switch to React 16
npm run react:16
```

### Running Tests

Expand Down
5 changes: 1 addition & 4 deletions docs/api/shallow.md
Expand Up @@ -46,10 +46,7 @@ describe('<MyComponent />', () => {
- `options.context`: (`Object` [optional]): Context to be passed into the component
- `options.disableLifecycleMethods`: (`Boolean` [optional]): If set to true, `componentDidMount`
is not called on the component, and `componentDidUpdate` is not called after
[`setProps`](ShallowWrapper/setProps.md) and [`setContext`](ShallowWrapper/setContext.md). Default to `false`.
- `options.lifecycleExperimental`: (`Boolean` [optional]): If set to true, the entire lifecycle
(`componentDidMount` and `componentDidUpdate`) of the React component is called. The current default value
is `false` with enzyme v2, but the next major version will flip the default value to `true`.
[`setProps`](ShallowWrapper/setProps.md) and [`setContext`](ShallowWrapper/setContext.md). Default to `false`.

#### Returns

Expand Down

0 comments on commit e435194

Please sign in to comment.