title: Update array object in React Redux reducer
body: <p>This should be simple but I'm not finding the simple answer I want. I have a reducer:</p>
  
  <pre><code>const posts = (state = null, action) =&gt; {
    switch(action.type){
      case "PUBLISH_POST":
          return state;
      case "UNPUBLISH_POST":
          return state;
      default:
          return postList;
    }
  }
  </code></pre>
  
  <p>I have a list of posts with <code>ID</code>'s and a <code>status</code>. I'm sending in my post ID but can't figure out the logic to simply update the <code>status</code> from 0 to 1 for the item which has been clicked. I've found plenty of half-solutions but they all seem verbose and ugly - what's the shortest/best way of achieving it in this case?</p>
  
  <p>Example data:</p>
  
  <pre><code>{
      id:1,
      user:"Bob Smith",
      content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vulputate mauris vitae diam euismod convallis. Donec dui est, suscipit at dui vitae, sagittis efficitur turpis. ",
      status:1 
  }
  </code></pre>