Refactoring: Stateless functional components

This commit is contained in:
2017-01-15 01:39:19 -08:00
parent 5926538f35
commit 01d5f986b1
8 changed files with 128 additions and 47 deletions

View File

@@ -11,7 +11,7 @@ var Weather = React.createClass({
},
handleSearch: function (location) {
var that = this;
this.setState({isLoading: true});
openWeatherMap.getTemp(location).then(function (temp) {