Last active
December 29, 2024 13:09
-
-
Save necolas/54b3baebd0e772e39f0e to your computer and use it in GitHub Desktop.
"atomic css" as compiled output
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
.abcd { | |
align-items: center; | |
} | |
.efgh { | |
background: blue; | |
} | |
.ijkl { | |
color: red; | |
} |
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
<button class="abcd efgh ijkl"> | |
<span class="abcd ijkl"></span> | |
Button | |
</button> |
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
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