Skip to content

Instantly share code, notes, and snippets.

@JonathanZWhite
Created April 23, 2017 21:08
Show Gist options
  • Save JonathanZWhite/7bfdb5f18a344232264532bf5e99707e to your computer and use it in GitHub Desktop.
Save JonathanZWhite/7bfdb5f18a344232264532bf5e99707e to your computer and use it in GitHub Desktop.
import React, { PropTypes } from 'react';
import { StyleSheet, css } from 'aphrodite';
function Button(props) {
return (
<input
className={css(styles.button)}
value={props.text}
/>
);
}
export default Button;
export const styles = StyleSheet.create({
button: {
background: 'rgba(0, 0, 0, 1)',
borderRadius: '5px',
border: 0,
color: 'white',
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment