ryact

v0.1.1
Allows you to write react components in a functional way.
react functional component testable reactive ryact ryan

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 })
npm i ryact

Metadata

Downloads

Maintainers