Last active
June 23, 2020 19:45
-
-
Save Eyongkevin/82f603906e94d6ce45f63bcfe87951d1 to your computer and use it in GitHub Desktop.
sample code for the tut `Build a Shopping Cart with React, Redux, and React-DnD`
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 React, { Component } from 'react'; | |
class MyCart extends Component { | |
render(){ | |
return( | |
<div> | |
<div class="ui cards"> | |
<div class="ui card centered"> | |
<div class="content"> | |
<img | |
src="/images/phone.jpg" | |
class="ui mini right floated image" | |
/> | |
<div class="header">Test_Phone</div> | |
<div class="meta">$ 80</div> | |
<div class="meta">12 minutes</div> | |
<div class="description"> | |
8G RAM, 16G memory | |
</div> | |
</div> | |
<div class="extra content"> | |
<div class="ui two buttons"> | |
<button class="ui green basic button">Buy</button> | |
<button class="ui red basic button">Decline</button> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
) | |
} | |
} | |
export default MyCart; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment