Last active
May 11, 2016 05:55
-
-
Save ryanluker/541522481ed4e07e460e8a01b3149e21 to your computer and use it in GitHub Desktop.
price label stateless component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import helpers from "../libs/helpers"; | |
let h = new helpers(); | |
export const PriceLabel = (props: {price: number}) => ( | |
<span className="price">{h.formatPrice(props.price)}</span> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment