From d2e3db0003454dc902fd81c196e822d1b319e8e2 Mon Sep 17 00:00:00 2001 From: Josh Minzner Date: Mon, 7 Jan 2019 08:50:59 -0500 Subject: [PATCH] Add clarification to docs --- docs/api/ShallowWrapper/dive.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {