3.0.1 • Published 8 years ago

uniflow-component v3.0.1

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

Uniflow React Component

The best way to subscribe to Uniflow stores in React components.

  • Automatically handles subscribing and unsubscribing to store change events.
  • Lets you write components that accept store state as a prop.

Install

$ npm install uniflow-component --save

Usage

import ThingStore from './stores/thing'
import React from 'react'
import uniflowComponent from 'uniflow-component'

export class ThingPreview extends React.Component {
  render () {
    return <div>{this.props.thing.name}</div>
  }
}

export default uniflowComponent(ThingPreview, {thing: ThingStore})
3.0.1

8 years ago

3.0.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.0

9 years ago