I want to write the equivalent in react:
if (this.props.conditionA) { Condition A } else if (this.props.conditionB) {
If any one still facing this issue, please paste below line in your eslintrc.js file.
eslintrc.js
"no-nested-ternary" : "off"
This will allow you to start using nested ternary in your jsx code.