Skip to content

pwmckenna/fluxible-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published