Last active
August 29, 2015 14:26
-
-
Save BrianGenisio/5e1c3bfa874a22e05e81 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
async componentDidMount() { | |
let busRoutes = await BusRouteStore.getAll(); | |
this.setState({busRoutes}); | |
} |
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
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