Skip to content

Instantly share code, notes, and snippets.

@simonsmith
Created January 4, 2014 23:43
Show Gist options
  • Save simonsmith/8262361 to your computer and use it in GitHub Desktop.
Save simonsmith/8262361 to your computer and use it in GitHub Desktop.
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