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