title: Electron multi window in typescript
body: <p>I am using react + typescript + electron. I want to display an HTML element to the new electron window.</p>
  <p>Electron only can open a new window by URL. So I found a solution at <a href="https://medium.com/@ZoeDreams/multiple-electron-windows-using-a-view-manager-and-react-js-6d8b1e209faf" rel="nofollow noreferrer">here</a></p>
  <p>This code is written by javascript, and I am a beginner of javascript and typescript.</p>
  <p>Error is occurred at</p>
  <pre><code>let view = ViewManager.Views()[name];
  </code></pre>
  <blockquote>
  <p>Element implicitly has an 'any' type because the expression of type 'any' can't be used to index type 'Element'.</p>
  </blockquote>
  <p>Also, I cannot understand this code. Could you explain to me this code or change this js code to typescript?</p>