mirror of
https://github.com/Raghu-Ch/ReactWeather.git
synced 2026-02-10 11:03:02 -05:00
Refactoring: Stateless functional components
This commit is contained in:
@@ -11,7 +11,7 @@ var Weather = React.createClass({
|
||||
},
|
||||
handleSearch: function (location) {
|
||||
var that = this;
|
||||
|
||||
|
||||
this.setState({isLoading: true});
|
||||
|
||||
openWeatherMap.getTemp(location).then(function (temp) {
|
||||
|
||||
Reference in New Issue
Block a user