Socket
Book a DemoInstallSign in
Socket

flux-capacitor-reduxify

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

flux-capacitor-reduxify

[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

Flux Capacitor - Reduxify

JavaScript Style Guide

Small utility to turn your Flux Capacitor reducers into Redux reducers, so you can re-use your backend code in your frontend!

Usage

Here comes some sample code showing how to re-use your flux capacitor reducer in the frontend:

import reduxify from 'flux-capacitor-reduxify'
import { combineReducers } from 'redux'
import backendReducer from './path/to/my/backend/code'

// Note: backendReducer is supposed to take one collection only, not the whole database
// => backendReducer: (Collection, Event) => Changeset
const reduxReducer = reduxify(backendReducer)

const reduxRootReducer = combineReducers({ foo: reduxReducer })

Flux Capacitor

Find it here 👉 Flux Capacitor

License

Released under the terms of the MIT license.

FAQs

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