title: How do I get my reducer to update one property of an object in state?
body: <p>For example, in props I have an object called 'user' that is set to: </p>
  
  <pre><code>user = { id: 1, 
           name: jim, 
           email: jim@gmail.com, 
           entries: 4,
           joined: 07-16-2018
         }
  </code></pre>
  
  <p>I want to have the UPDATE_USER_ENTRIES action dispatch updates only to the  user.entries using the payload</p>
  
  <p>What I have for my current reducer function is this:</p>
  
  <pre><code>export const loadUserData = (state = initialStateUser, action = {}) =&gt; {
      switch(action.type) {
          case LOAD_USER:
              return Object.assign({}, state, { 
                  user: { 
                      id: action.payload.id, 
                      name: action.payload.name, 
                      email: action.payload.email, 
                      entries: action.payload.entries, 
                      joined: action.payload.joined 
                  }
              });
          case UPDATE_USER_ENTRIES:
              return {...state, **// NEED HELP HERE** };
          default:
              return state;
      }
  }
  </code></pre>
  
  <p>What is the proper way of writing the return in order to return a new user object with just the entries properties updated? Thanks!</p>