Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

concent-middleware-web-devtool

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concent-middleware-web-devtool

concent的状态变迁调试工具

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

concent状态变迁调试工具

类似redux-devtoolconcent-middleware-web-devtool作为中间件被引入,可以追溯整个concent引用的状态变迁过程,并允许你查看某一次状态变更是由具体那一个组件触发导致。

如何使用

npm 安装
npm i concent-middleware-web-devtool
项目里引入

在runConcent.js脚本里引入中间

import { run } from 'concent';
import { concentWebDevToolMiddleware } from 'concent-middleware-web-devtool';


run(
  // { ... your store definition },
  {
    //配置devtool中间件
    middlewares:[concentWebDevToolMiddleware],
  }
);
实例化UI

在顶层ReactDOM里实例化ConcentWebDevTool组件

import YourApp from './YourApp';
import { ConcentWebDevTool } from 'concent-middleware-web-devtool';

function App(){
  return (
    <React.Fragment>
      <ConcentWebDevTool />
      <YourApp />
    </React.Fragment>
  );
}

Keywords

FAQs

Package last updated on 14 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc