uniflow-component

3.0.1 • Public • Published

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})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.1
    101
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.1
    101
  • 3.0.0
    1
  • 2.0.1
    1
  • 2.0.0
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i uniflow-component

Weekly Downloads

105

Version

3.0.1

License

MIT

Last publish

Collaborators

  • thetalecrafter
  • aaronshaf
  • brentburgoyne