Skip to content

Instantly share code, notes, and snippets.

@jcreamer898

jcreamer898/price.tsx

Last active Feb 2, 2018
Embed
What would you like to do?
import * as React from "react";
import formatPrice from "../utils/formatPrice";
export interface IPriceProps {
num: number;
symbol: "$" | "€" | "£";
}
const Price: React.SFC<IPriceProps> = ({
num,
symbol
}: IPriceProps) => (
<div>
<h3>{formatPrice(num, symbol)}</h3>
</div>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment