title: Load WebAssembly module only once / Singleton
body: <p>I want to use WebAssembly modules in my React app. The modules are loaded when the app starts. Now I want to reuse this wasm module in another Javascript module.</p>
  
  <p>How can I reuse these wasm modules in other JS modules? Do I really have to load the modules again?</p>
  
  <p>Loading wasm in the main module:</p>
  
  <pre><code>Promise.all([
      import("webassembly-tests-rust")
      //...
  ])
      .then(modules =&gt; {
          // how to store the module to make it available in other modules?
          wasm["rust"] = modules[0];
          //...
      })
  </code></pre>
  
  <p>Other module:</p>
  
  <pre><code>wasm.rust.somefunction();
  </code></pre>