New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-models

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-models

Boilerplate-less Redux

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

react-models

Beutiful boiler-plate-less Redux code.

What is a model?

A model is a combination of Redux action creators (thunks), asyncronuous effects (sagas) and reducers, combined in 'models' that approximate the classes of an object oriented development pattern. In other words, a model is the combination of all the Redux code concerned with manipulating one part of the store. A single model could handle, for instance, user authentication, a to-do-list, a shopping cart or anything else you can imagine.

Dynamic, HMR-powered, and transferrable

Models can be loaded and unloaded dynamically. They work with hot module reloading. They can easily be transfered between projects - for instance, you could write an auth module that can be used in all of your company's project.

Subscriptions

In addition to the common Redux functions, react-models introduces Redux-aware subscriptions. Subscriptions are functions that watch something for changes. Common usages include watching for URL changes and dispatching Redux actions in response to them, listening to keyboard events, and listening to Socket.io events.

Installation

npm install --save react-models

Tests

Please refer to the tests folder for examples and common usages.

FAQs

Package last updated on 01 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