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
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.