mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
work and created develop branch
This commit is contained in:
38
Example Code/Weather/index.js
Normal file
38
Example Code/Weather/index.js
Normal file
@@ -0,0 +1,38 @@
|
||||
import React from "react";
|
||||
import styles from "./styles.module.css";
|
||||
class Weather extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
show: true,
|
||||
|
||||
};
|
||||
this.props = {
|
||||
name : '',
|
||||
temperature : '',
|
||||
temperatureUnit : '',
|
||||
detailedForecast : '',
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="card">
|
||||
<span
|
||||
className="close"
|
||||
onClick={this.props.dataclick}
|
||||
datatitle={this.props.title}
|
||||
>×
|
||||
</span>
|
||||
|
||||
<p>{this.props.name}</p>
|
||||
<p>{this.props.temperature}</p>
|
||||
<p>{this.props.temperatureUnit}</p>
|
||||
<p>{this.props.detailedForecast}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default Weather;
|
||||
Reference in New Issue
Block a user