Skip to content

Instantly share code, notes, and snippets.

@pnispel
Created October 26, 2016 14:30
Show Gist options
  • Save pnispel/8791742d45b25ededab34ccbd1dfb7aa to your computer and use it in GitHub Desktop.
Save pnispel/8791742d45b25ededab34ccbd1dfb7aa to your computer and use it in GitHub Desktop.
export default ({nestedPhoto}) => {
return (
<PhotoCard
dispatch={(action) => nestedPhoto(action, {id: blah})}
/>
<Viewer
/* ???? needs to dispatch some to nestedPhoto and some to the parent of nestedPhoto */
/>
);
}
{
albumShow: {
collection: [/* nested modules for each item in the collection */],
viewer: {
open: false,
},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment