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

deku-redux

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deku-redux

Redux bindings for deku

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 04 Aug 2016

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