title: Check if value is negative and apply CSS in React JS
body: <p>I am working on a ReactJS website where I pull prices from API using Axios. Now that I did it successfully I am looking for a way to show if 24 hour change percentage is positive it would have a green color if its negative red. My class looks like this. </p>
  
  <pre><code>class BtcTicker extends Component {
    render() {
      return (
        &lt;div&gt;
          &lt;p&gt;{fix_value(this.props.data.lastPrice, 2)} USDT&lt;/p&gt;
          &lt;p&gt;{fix_value(this.props.data.priceChangePercent, 2)}%&lt;/p&gt;
        &lt;/div&gt;
      );
    }
  }
  </code></pre>
  
  <p>How can I achieve this?</p>