I am experimenting React.js and it is working really well. I am wondering if it is possible to inject classes to other classes like so:
var Container = React.createClass({
render: function() {
<{this.props.implComponent}/>
}
});
Assuming implComponent has been passed like so:
React.render(
<Container implComponent="somePredefinedVariable" />,
document.getElementById('content')
);
This does not work because of a Syntax error. I can easily understand why.
In other words I'd like to inject classes to other classes based on names. Is this possible? How can I do that?