Nuanced Pterodactyl Monk

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

    Install

    npm i ryact

    DownloadsWeekly Downloads

    1

    Version

    0.1.1

    License

    BSD-2-Clause

    Last publish

    Collaborators

    • nightwolfz