React component for adding rendering conditions
render(){
var condition = true;
return (
<div>
{RenderIf(condition,
()=> {
return <div>Condition is TRUE</div>;
},
()=>{
return <div>Condition is FALSE</div>;
}
)}
</div>
);
}