Skip to content

Instantly share code, notes, and snippets.

@BrianGenisio
Last active August 29, 2015 14:26
Show Gist options
  • Save BrianGenisio/5e1c3bfa874a22e05e81 to your computer and use it in GitHub Desktop.
Save BrianGenisio/5e1c3bfa874a22e05e81 to your computer and use it in GitHub Desktop.
async componentDidMount() {
let busRoutes = await BusRouteStore.getAll();
this.setState({busRoutes});
}
componentDidMount: function() {
var self = this;
BusRouteStore.getAll().then(function(busRoutes) {
self.setState({busRoutes: busRoutes});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment