ryact
v0.1.1
Published
Allows you to write react components in a functional way.
Downloads
8
Maintainers
Readme
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 })