Created
June 2, 2016 11:13
-
-
Save klarstrup/84df3873b5e02fc760037cbb917b41e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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