-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.jsx
26 lines (24 loc) · 898 Bytes
/
index.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class DownloadElement extends React.Component {
render() {
return (
<div className="download">
<a href={"#" + this.props.dlName}>{this.props.dlName}</a>
<div className="modal" id={this.props.dlName}>
<div className="modal-container">
<a className="modal-close" href="#modal-close">×</a>
<div className="modal-content">
<h2>{this.props.dlName}</h2>
<h4 className="modal-version">{this.props.dlVersion} for {this.props.dlPlatform}</h4>
</div>
</div>
</div>
</div>
);
}
}
ReactDOM.render(
<div>
<DownloadElement dlName="UwU" dlVersion="1.2.3" dlPlatform="Bukkit"/>
</div>,
document.getElementById('root')
)