```

import React, {Component} from 'react';

import CheckList from './CheckList';

import marked from 'marked';

class Card extends Component {

constructor(props) {

super(props);

this.state = {

showdetails: false

};

}

handleChange() {

this.setState({

showdetails: !this.state.showdetails

});

}

render() {

let cardDetails;

if (this.state.showdetails) {

cardDetails = (

{this.props.description && (

)}

{this.props.tasks && }

);

} else {

cardDetails = null;

}

return (

{this.state.showdetails && cardDetails}

);

}

}

```

```

import React from 'react';

class Card extends React.Component {

handleChange() {

// 处理点击事件

}

render() {

return (

{this.props.title}

{cardDetails}

);

}

}

export default Card;

```