Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jsx else if statement

render() {
  return <span>
    {this.props.conditionA ? "Condition A" 
      : this.props.conditionB ? "Condition B" 
      : "Neither"}
  </span>;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jsx #statement
ADD COMMENT
Topic
Name
2+7 =