fluxible-hooks

1.0.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i fluxible-hooks

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

6.23 kB

Total Files

8

Last publish

Collaborators

  • pwmckenna