client/src/pages/User.js
// When a user joins a group via invite code, info for that group is added to the user document
When a user joins a group via invite code, info for that group is added to the user document
When a user joins a group via invite code info for that group is added to the user document
function addGroupToUser(username, groupData) {
    API.addGroupToUser(username, groupData).then((res) => {
      loadUser(username);
    });
  }
function addGroupToUser ( username , groupData ) { API . addGroupToUser ( username , groupData ) . then ( ( res ) => { loadUser ( username ) ; } ) ; }
When a user joins a group via invite code, info for that group is added to the user document
When a user joins a group via invite code info for that group is added to the user document
// console.log(res);