Files
ballistic-builder/Example Code/Card/index.tsx

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}>&times;</span>
<h3>{this.props.title}</h3>
<p>{this.props.content}</p>
</div>
);
}
}
export default Card;