var React = require('react');
// var WeatherMessage = React.createClass({
// render: function () {
// var {temp, location} = this.props;
//
// return (
//
It's it {temp} in {location}.
// )
// }
// });
// Refactoring stateless function
// var WeatherMessage = (props) => {
// var {temp, location} = props;
// return (
// It's it {temp} in {location}.
// )
// };
// (or)
var WeatherMessage = ({temp, location}) => {
return (
It's it {temp} in {location}.
)
};
module.exports = WeatherMessage;