Is it possible to store some React templates in properties of one global variable? I mean that I want to create two child templates:
app.templates.CommonProducts = React.createClass(/* any render, etc */);
and
app.templates.DiscountProducts = React.createClass(/* any render, etc */);
How can I get these templates in "parent" template? What tag names (CommonProducts, DiscountProducts) should look like?
app.templates.Products = React.createClass({
render: function() {
return (
<div>
<CommonProducts></CommonProducts>
<DiscountProducts></DiscountProducts>
</div>
);
}
});