Skip to content

uniflow/uniflow-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Flux react component for Uniflow stores.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •