title: Redux reducers, object key value
body: <p>I have hashMap in my redux store, I want change isChecked value for children <code>id: 2</code>. Is it good to make it on state like this (operating on state)?</p>
  
  <p>My hashMap</p>
  
  <pre><code>const childrens = {
    1: { name: "Test", isChecked: false },
    2: { name: "test2", isChecked: false }
  };
  </code></pre>
  
  <p>Here is my reducer</p>
  
  <pre><code>export const childrensReducer = (state = childrens, action) =&gt; {
    switch (action.type) {
      case "SELECT_CHILDREN":
        const id = 2;
        state[id].isChecked = !state[id].isChecked;
        return { ...state };
    }
  };
  </code></pre>