title: Using ES6 Map with React and/or Redux
body: <p>I am looking at using the ES6 <code>Map</code> object to do my hashing for me, instead of creating a custom hashing function. However, it seems to me that it doesn't have much support for immutability, which is a key thing for React as well as Redux.</p>
  <p>I am used to not using any libraries for immutability, but use just plain destructuring:</p>
  <pre><code>const newObj = { ...prevObj, newKey: &quot;value&quot; }
  </code></pre>
  <p>or map/filter with arrays.</p>
  <p>However, ES6 <code>Map</code> has methods that directly update the object itself.</p>
  <p>What I could think of was to do something like this:</p>
  <pre><code>var myMap = new Map()
  Var myNewMap = { ...myMap.set() }
  this.setState({ myMap:myNewMap })
  </code></pre>
  <p>But I am not sure if that would work.</p>