Created
July 31, 2018 12:16
-
-
Save phongvh/a25981c7f4ca24723a85e124cece976c to your computer and use it in GitHub Desktop.
This file contains 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
class SampleComponent extends Component { | |
render() { | |
let classes = ['btn', 'btn-primary']; | |
classes.push('active'); | |
return <Button className={classes.join(' ')}>Submit</Button>; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment