I want to write the equivalent in react:
if (this.props.conditionA) { Condition A } else if (this.props.conditionB) {
Why do you say that the ternary is not expressive enough?
render() { return {this.props.conditionA ? "Condition A" : this.props.conditionB ? "Condition B" : "Neither"} ; }