mirror of
https://github.com/Raghu-Ch/ReactWeather.git
synced 2026-02-10 03:03:01 -05:00
14 lines
242 B
JavaScript
14 lines
242 B
JavaScript
var React = require('react');
|
|
|
|
var WeatherMessage = React.createClass({
|
|
render: function () {
|
|
var {temp, location} = this.props;
|
|
|
|
return (
|
|
<h3>It's it {temp} in {location}.</h3>
|
|
)
|
|
}
|
|
});
|
|
|
|
module.exports = WeatherMessage;
|