Skip to content

Instantly share code, notes, and snippets.

@necolas
Last active August 29, 2015 14:21
Show Gist options
  • Save necolas/54b3baebd0e772e39f0e to your computer and use it in GitHub Desktop.
Save necolas/54b3baebd0e772e39f0e to your computer and use it in GitHub Desktop.
"atomic css" as compiled output
.abcd {
align-items: center;
}
.efgh {
background: blue;
}
.ijkl {
color: red;
}
<button class="abcd efgh ijkl">
<span class="abcd ijkl"></span>
Button
</button>
var React = require('react')
var StyleSheet = require('react-style')
var classes = Stylesheet.create({
button: {
alignItems: 'center',
background: 'blue',
color: 'red'
},
icon: {
alignItems: 'center',
color: 'red'
}
});
class Button extends React.Component{
render() {
return (
<button className={classes.button}>
<span className={classes.icon} />
Button
</button>
);
}
}
export default Button;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment