diff --git a/docs/api/ShallowWrapper/dive.md b/docs/api/ShallowWrapper/dive.md index b5f4aec7b..aae9cf198 100644 --- a/docs/api/ShallowWrapper/dive.md +++ b/docs/api/ShallowWrapper/dive.md @@ -51,7 +51,7 @@ expect(wrapper.find(Bar).dive().find('.in-bar')).to.have.lengthOf(1); #### Common Gotchas -- If you _only_ dive a `` (even if there is a `` in your component tree) you always get the default context value. If you want the `` to receive your ``'s `value` you must first `.dive()` the ``, the `.dive()` the ``. +- When using the `React.createContext()` API, if you _only_ dive a `` (even if there is a `` in your component tree) you always get the default context value. If you want the `` to receive your ``'s `value` you must first `.dive()` the ``, then `.dive()` the ``. ```jsx const { Provider, Consumer } = React.createContext('foo'); function MyComponent() {