saiichihashimoto / feathers-react-redux

Unofficial Feathers bindings for React-Redux

Home Page:http://saiichihashimoto.com/feathers-react-redux/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

Unofficial Feathers bindings for React-Redux

http://saiichihashimoto.com/feathers-react-redux/

License:MIT License


Languages

Language:JavaScript 100.0%