We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60c8b5c commit 626d1a2Copy full SHA for 626d1a2
1 file changed
README.md
@@ -85,6 +85,31 @@ import { ContextDevTool } from 'react-context-devtool';
85
86
```
87
88
+## Set Display name in Auto Mode
89
+
90
+### Set Display name for Context API
91
92
+- set `dispayName` props in `Provider`
93
94
+```js
95
+<MyContext.Provider value={{ a: 'hello', b: 'world' }} displayName="Context Display Name">
96
+ <YourComponent />
97
+</MyContext.Provider>
98
+```
99
100
+or
101
102
+- assign display name in Context
103
104
105
+ MyContext.displayName = "Context Display Name";
106
107
108
+### Set Display name for useReducer
109
110
+- reducer function name is use as displayName in debug
111
112
113
## Disable in production mode
114
115
```js
0 commit comments