wix-incubator / react-templates

Light weight templates for react
https://wix.github.io/react-templates
MIT License
2.82k stars 207 forks source link

Inside Template giving error #256

Open sridhar-v9 opened 5 years ago

sridhar-v9 commented 5 years ago

Hi,

iam able to write the following code inside render method with out having errors. { elem.props.tabicon!==undefined && <span class={elem.props.tabicon}></span> }

But the same is giving the compilation error in the template. Please suggest me how i can write the above code in template with out using "rt-if"