deeppatel234 / react-context-devtool

React context and useReducer debugging tool
MIT License
233 stars 35 forks source link
chrome-extension firefox-extension javascript react-context reactjs usereducer usereducer-hooks

Devtool for React Context and useReducer Hook

License: MIT NPM Download NPM

Installation

Set Display names

Display name for Context API

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

or

  MyContext.displayName = "Context Display Name";

Display name for useReducer

Settings

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.