title: Ace Editor clearing on react render
body: <p>I have the following react structure (I simplified it for this post):</p>
  
  <pre><code>&lt;div&gt;
      &lt;div&gt;
          &lt;div
              &lt;AceEditor/&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div&gt;
          &lt;p/&gt;
          &lt;hr/&gt;
          {items}
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>AceEditor is imported from the <code>react-ace</code> npm package and <code>{items}</code> is an array of varying size, created from an array in <code>this.state</code>.
  Everything works as it should except for one thing: Every time this structure is re-rendered due to changes in <code>{items}</code> (because of changes in the array in <code>this.state</code>), the text in the AceEditor is reset. No onChange event is fired and I can't seem to track the problem down to its roots.</p>
  
  <p>Does anybody know what causes the problem and how to solve this?</p>