How do I call the function for getClass for the className inside this example? The way I have it written out does not seem to call getClass.
var CreateList = React.createClass({
getClass: function() {
//some code to return className
},
render: function() {
return(
<div className{this.getClass}>Example</div>
);
}
});
className{this.getClass}toclassName={'className' + this.getClass()}.(). If you don't callthis.getClass, it won't work.