title: Using forceUpdate instead of setState in React?
body: <p>If I have a react component, and I just set its class variables, ie</p>
  <pre><code>class MyComponent extends React.Component {
  
      constructor(props) {
        super(props);
        this.numberElements = 20;
        this.color = 'red';
      }
  
      render() { 
         ...
      }
  }
  </code></pre>
  <p>Can't I just call <code>this.forceUpdate()</code> to issue a re-render (whenever I update my class variables) instead of maintaining a state and calling <code>setState</code>?. Or is it bad to do that, and if so, why?</p>