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}/>
-
Notifications
You must be signed in to change notification settings - Fork 2
pwmckenna/fluxible-hooks
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published