Last active
February 27, 2018 12:30
-
-
Save misterfresh/f2e5befc1e7cd0911d274224518f680c 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
| // don't make a specific component just to add a style, don't do | |
| let BlueButton = ({children}) => <button style={{color: 'blue'}}>{children}</button> | |
| let MyPage = () => <div> | |
| <BlueButton>Add item</BlueButton> | |
| </div> | |
| // in this case just use the default html button tag, just do | |
| let MyPage = () => <div> | |
| <button style={{color: 'blue'}}>Add item</button> | |
| </div> | |
| // one less import! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment