title: es2015 modules - how to name exports dynamically
body: <p>I would like to create a module, <code>h</code>, which exports one function for every HTML element. Here's how it might be used:</p>
  <pre><code>import {div, p} from 'h'
  
  const myDiv = div(p('some text'))
  </code></pre>
  <p>Here's how that module is defined:</p>
  <pre><code>const h = {}
  for (let tagName of ['div', 'p', /* ... */]) {
    h[tagName] = (...children) =&gt; {
      // ...
    }
  }
  
  export const div = h.div
  export const p = h.p
  /* ... */
  </code></pre>
  <p>I don't like that every export has to be listed explictly. How do I make these dynamic?</p>