0.5.0 • Published 8 years ago

feathers-react-redux v0.5.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Feathers React Redux

npm version

Unofficial Feathers bindings for React-Redux.

Overview

React-Redux is great. Feathers is fantastic. feathers-react-redux aims to tie these two together.

Features

  • Redux stores mirror feathers services through reducers.
  • Dispatched actions are consistently named and follow proper Flux Standard Action conventions.
  • React Components define what they need, whether it be an initial client side load, initial server side load, or keeping up to date with feathers events.

Installation

npm install --save feathers-react-redux

This assumes that you’re using npm package manager with a module bundler like Webpack or Browserify to consume CommonJS modules.

Usage

Basic Usage

reducer(resource)

actions(app, resource)

FeathersMixin

FeathersMixin.setFeathersApp(app)
FeathersMixin.setFeathersActions(actions)
FeathersMixin.feathers(resource, options)

serverActionsReducer(state, action)

serverRender(element, store, actions, callback)