How to perform inline nested if Statement in React View ,
For example
true ? function a() : function b()
the Above format is working fine but i need to perform nested if like below example
For Example
true ? true : function a () : true :function b()
My Working Code
<div onClick={()=> this.props.materials.is_table_clicked ? this.handleLocal() : this.props.enableMaterialTable(this.props.materials)}>
Tried Nested If but not Working
<div onClick={()=> this.props.materials.is_table_clicked ? this.handleLocal() : this.props.audio.playing ? this.props.enableMaterialTable(this.props.materials)}>