title: Use a single Redux reducer for all CRUD actions?
body: <p>Why not use a single reducer function to add, update, and remove entities to/from a Redux store?  It could simply use an action.payload.table property to identify the proper "table" to use in the store.</p>
  
  <p>I've never seen this pattern in examples, blog posts, etc.  On the contrary, most examples have actions dedicated to toggling a single field on an entity, such as a "completed" flag on a todo.  The amount of repetition that would require in a large app has kept me from using Redux, so I hope this is doable.</p>
  
  <p>For example:</p>
  
  <pre><code>function entityReducer(state, action) {
  
    //Action payload includes the entity "type" or "table" name
  
    switch(action.type) {
      case 'CREATE_ENTITY': {
        ...
      }
      case 'UPDATE_ENTITY': {
        ...
      }
      ...
    }
  }
  </code></pre>