Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const albums = new ReactiveVar([]);
export default createContainer(() =>{
HTTP.get('https://graph.facebook.com/' + this.props.clubId + "/albums?fields=id,name" + token, function(err, resp) {
albums.set(resp.data.data.map(c => <a key={c.id} href={'../gallery/' + c.id}>{c.name}</a>))
});
return {albums : albums.get()};
}, App);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment