Last active
October 18, 2017 20:54
-
-
Save vivek12345/8686f3036bf68b02c128787784e1545d to your computer and use it in GitHub Desktop.
This file contains 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 React from 'react'; | |
import { Card, CardMedia, CardTitle, CardText } from 'react-toolbox/lib/card'; | |
const style = { | |
width: '350px', | |
marginLeft: '20px', | |
marginTop: '20px', | |
display: 'inline-block' | |
}; | |
const Product = (props) => ( | |
<Card style={style}> | |
<CardMedia | |
aspectRatio="wide" | |
image={props.product.imageUrl} | |
/> | |
<CardTitle | |
title={props.product.name.toUpperCase()} | |
subtitle="Subtitle here" | |
/> | |
<CardText>{props.product.price}</CardText> | |
</Card> | |
); | |
export default Product; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment