title: Use if statement in React JSX
body: <p>Can you use a if statement in JSX like this?</p>
  
  <pre><code>    var chartGraphContent =
          &lt;div className={"chartContent"}&gt;
              if(this.state.modalityGraph['nca'] &gt; 0){
                  &lt;div className={"chart-container"}&gt;
                      &lt;Chart
                          chartType="ColumnChart"
                          data = { this.state.modalityGraph?this.state.modalityGraph.chartData['units']:emptyDataRows }
                          options={chartOptions}
                          graph_id="modalitiesChart"
                          width="100%"
                          height="250px"
                      /&gt; 
                  &lt;/div&gt;
              }
          &lt;/div&gt;;
  </code></pre>
  
  <p>Something like above? Is it possible to have JSX based on a condition?</p>