1.0.5 • Published 5 years ago

fluxible-hooks v1.0.5

Weekly downloads
15
License
ISC
Repository
github
Last release
5 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

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago