Find Similar Packages for redux-devtools-extension
redux-devtools-extensionSimilar Packages:
Npm Package Weekly Downloads Trend
3 Years
🌟 Show real-time usage chart on redux-devtools-extension's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of redux-devtools-extension](https://npm-compare.com/img/npm-trend/THREE_YEARS/redux-devtools-extension.png)](https://npm-compare.com/redux-devtools-extension#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
redux-devtools-extension850,595
13,494-2655 years agoMIT
README for redux-devtools-extension

Redux DevTools Extension's helper

Join the chat at https://gitter.im/zalmoxisus/redux-devtools-extension

Usage

Install:

npm install --save redux-devtools-extension

and use like that:

import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';

const store = createStore(
  reducer,
  composeWithDevTools(
    applyMiddleware(...middleware)
    // other store enhancers if any
  )
);

or if needed to apply extension’s options:

import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';

const composeEnhancers = composeWithDevTools({
  // Specify here name, actionsBlacklist, actionsCreators and other options
});
const store = createStore(
  reducer,
  composeEnhancers(
    applyMiddleware(...middleware)
    // other store enhancers if any
  )
);

There’re just few lines of code. If you don’t want to allow the extension in production, just use ‘redux-devtools-extension/developmentOnly’ instead of ‘redux-devtools-extension’.

License

MIT