1.0.5 • Published 6 years ago

fluxible-hooks v1.0.5

Weekly downloads
15
License
ISC
Repository
github
Last release
6 years ago

fluxible-hooks

import { useStores } from 'fluxible-hooks';

const User = ({ userId }) => {
    const { firstName, lastName } = useStores([UserStore], context => {
        context.getStore(UserStore).getUser(userId)
    });

    return <p>{firstName} {lastName}</p>;
}

...

<User userId={15}/>
1.0.5

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago