import React, {Component} from 'react'; import {Card, Col, Row} from 'react-bootstrap'; type CardProps = { title: string, content: string, update: Date } class HCard extends Component { constructor(props: CardProps) { super(props) } render() { return (
{this.props.title}
{this.props.content}
Last updated {this.props.update.toLocaleTimeString('en-GB')}
); } } export default HCard;