Socket
Socket
Sign inDemoInstall

deku-redux

Package Overview
Dependencies
22
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    deku-redux

Redux bindings for deku


Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Build Status

deku-redux

Bindings for redux in deku.

npm install deku-redux

Redux

Read the docs about Redux: Redux docs. If you are familiar with react-redux, deku-redux is very similar.

storePlugin(store)

Add your store to your tree with storePlugin. It is required for connect to be able to get access to your state.

import { tree, render } from 'deku';
import element from 'virtual-element';
import { createStore } from 'redux';
import { storePlugin } from 'deku-redux';
import reducers from './reducers';
import App from './components/App';

const store = createStore(reducers);

const app = tree()
    .use(storePlugin(store))
    .mount(element(App));

render(app, document.getElementById('app'));

connect([mapStateToProps], [mapDispatchToProps], [mergeProps])

Use connect higher-order component for connecting to your state, same as connect from react-redux.

See Redux with React for more information on how to use.

Keywords

FAQs

Last updated on 04 Aug 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc