import React from "react"; import "./Card.css"; const Card = (props) => { let diff = props.latest - props.prior; if (diff >= 0) { diff = "+" + diff.toString(); } return (

{props.name}

{props.latest} {props.suffix}{" "} ({diff} {props.suffix})

); }; export default Card;