Created
August 4, 2017 09:05
-
-
Save ernestofreyreg/8e5e12deba2721893efb90bfb322078f to your computer and use it in GitHub Desktop.
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 from 'react' | |
const Button = ({title, onClick}) => ( | |
<button className='Button' onClick={onClick}> | |
{title} | |
{/*language=CSS*/} | |
<style jsx>{` | |
.Button { | |
background-color: red; | |
color: white; | |
padding: 4px 10px; | |
font-size: 14px; | |
border: none; | |
border-radius: 4px; | |
} | |
`}</style> | |
</button> | |
) | |
export {Button} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment