Coder Social home page Coder Social logo

hydrogen-store-redux-plugin's Introduction

hydrogen-store-redux-plugin

hydrogen-store redux 插件,用于使用 redux-dev-tool,但是对业务代码不会有任何影响

即使因为种种原因你不想使用 redux 了,但是否时常会怀念 redux-devtool 的方便?hydrogen-store 可以方便开启 redux-devtool。仅需引入一个插件

用法

用法 redux devtool

import { usePlugins } from 'hydrogen-store'
import reduxPlugin from 'hydrogen-store-redux-plugin'

usePlugins([reduxPlugin])

好了,现在可以愉快的使用 redux devtool 进行调试了。hydrogen-store 本身不依赖 redux,使用 redux 和不使用 redux 对于业务代码完全没有影响,你可以通过环境变量/打包配置等开启或禁用它。

使用独立实例时需配置 devtoolId,用来在 devtool 中加以区分

hydrogen-store-redux-plugin's People

Contributors

mingneo avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.