fluxible-hooks
v1.0.5
Published
```js import { useStores } from 'fluxible-hooks';
Downloads
13
Readme
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}/>