ryact

0.1.1 • Public • Published

Ryact

Allows you to write your components like this:

import ryact from 'ryact'
 
const contextTypes = {
    stores: React.PropTypes.any
}
 
export function fetchData({ store, params }) {
    store.genericStore.doSomething()
}
 
export function render({ props, store }) {
    return <div>
        store.genericStore.getSomething()
    </div>
}
 
export default ryact({ fetchData, render })

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i ryact

Weekly Downloads

0

Version

0.1.1

License

BSD-2-Clause

Last publish

Collaborators

  • nightwolfz