Skip to content

deeppatel234/react-context-devtool

Repository files navigation

Devtool for React Context and useReducer Hook

License: MIT NPM Download NPM

Installation

Set Display names

Display name for Context API

  • set dispayName props in Provider
<MyContext.Provider value={{ a: 'hello', b: 'world' }} displayName="Context Display Name">
  <YourComponent />
</MyContext.Provider>

or

  • assign display name in Context
  MyContext.displayName = "Context Display Name";

Display name for useReducer

  • reducer function name is use as displayName in debug

Settings

  • Chrome : right click on react-context-devtool icon and click on "Options"
  • Firefox : 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 Browserstack.

Packages

No packages published

Contributors 3

  •  
  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy