mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
24 lines
531 B
TypeScript
24 lines
531 B
TypeScript
import React from "react";
|
|
import "./index.css";
|
|
class Card extends React.Component {
|
|
|
|
constructor( props ) {
|
|
super(props)
|
|
this.state = { show : true };
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<div className="card" >
|
|
<span
|
|
className="close" onClick={this.props.dataclick}
|
|
datatitle={this.props.title}>×</span>
|
|
<h3>{this.props.title}</h3>
|
|
<p>{this.props.content}</p>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
}
|
|
export default Card;
|