React context devtool
React context and useReducer debugging tool
- Download extension from - [Chrome Web Store](https://chrome.google.com/webstore/detail/oddhnidmicpefilikhgeagedibnefkcf) - [Microsoft Edge Addons Store](https://microsoftedge.microsoft.com/addons/detail/react-context-devtool/bnclaomncapgohhafjepfklgbjdjlfcd) - [Firefox Addons Store](https://addons.mozilla.org/en-US/firefox/addon/react-context-devtool1) (latest) - [Firefox Addons Store](https://addons.mozilla.org/en-US/firefox/addon/react-context-devtool) (upto V3.3) The project is written primarily in JavaScript, distributed under the MIT License license, first published in 2019. Key topics include: chrome-extension, firefox-extension, javascript, react-context, reactjs.
Installation
- Download extension from
- Chrome Web Store
- Microsoft Edge Addons Store
- Firefox Addons Store (latest)
- Firefox Addons Store (upto V3.3)
Set Display names
Display name for Context API
- set
dispayNameprops inProvider
js<MyContext.Provider value={{ a: 'hello', b: 'world' }} displayName="Context Display Name"> <YourComponent /> </MyContext.Provider>
or
- assign display name in Context
jsMyContext.displayName = "Context Display Name";
Display name for useReducer
- reducer function name is use as displayName in debug
Settings
- <b>Chrome</b> : right click on react-context-devtool icon and click on "Options"
- <b>Firefox</b> : right click on react-context-devtool icon and click on "Manage Extenstion" and select "Preferences" tab
| Name | Type | Default | Description |
|---|---|---|---|
| Start Debugging | On Extensions Load | true | Start data capturing after extenstion is opened in dev panel (recommended) |
| On Page Load | false | Start data capturing after page load | |
| Enable Debug | useReducer | true | enable/disable useReducer debug. Available only in development mode |
| Context | true | enable/disable context debug |
Troubleshooting
"React is not found in this page" when using NextJS
This extension requires React Developer Tools installed on your browser to work. Try to install the extension and restart the browser to fix it.
License
MIT
Cross-browser testing provided by <a href="http://browserstack.com">Browserstack</a>.
Contributors
Showing top 3 contributors by commit count.
