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

redux-lazy

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-lazy

redux-lazy

  • 0.6.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

redux-lazy

Generating constants, action types, action creators, reducers and containers for you.

NPM

npm version Build Status Coverage Status Linux Build Windows Build

Dependency Status devDependency Status peerDependencies Status

NSP Status Known Vulnerabilities License GitHub stars GitHub forks GitHub issues Twitter

How to install

 npm i -S redux-lazy

How to use

import RL from 'redux-lazy';

const rl = new RL('post');

rl.addAction('title', { title: '' });

const {
  nameSpace,
  types,
  actions,
  defaultState,
  reducer,
  mapStateToProps,
  mapDispatchToProps,
  Container,
} = rl.flush();

React example

import React from 'react';
import RL from 'redux-lazy';

const rl = new RL('post');

rl.addFormAction('submit');
rl.addFormElementAction('title');

const { Container, reducer } = rl.flush();

const FormComponent = props => (
  <form onSubmit={props.submitAction}>
    <input
      type="text"
      value={props.title}
      onChange={props.titleAction}
    />
  </form>
);

export default Container(FormComponent);

export { reducer };

Just add reducer to redux and this example should work.

Articles

React — redux for lazy developers:

React/Redux development on steroids

Documentation

Keywords

FAQs

Package last updated on 08 Oct 2018

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