Created
January 4, 2014 23:43
-
-
Save simonsmith/8262361 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
| var Component = React.createClass({ | |
| render: function() { | |
| return ( | |
| <div className="Component"> | |
| // More content here | |
| </div> | |
| ) | |
| } | |
| }); | |
| var ComponentList = React.createClass({ | |
| render: function() { | |
| return ( | |
| // What I'd like is to be able to add to the Component | |
| // classnames from here so the classnames end up mixed together | |
| <Component className="Component--wide" /> | |
| <Component className="Component--evenWider u-someUtility" /> | |
| <Component /> | |
| ) | |
| } | |
| }) | |
| // Desired output | |
| <div class="Component Component--wide"></div> // etc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment