client/src/components/NewGroupModal/NewGroupModal.js
// Builds array of objects with all info for Users in new Subgroup
Builds array of objects with all info for Users in new Subgroup
Builds array of objects with all info for Users in new Subgroup
function buildUserForm(event) {
    console.log(event.target);
    const id = event.target.value;
    const name = event.target.innerHTML;
    const userObject = { name: name, _id: id };
    setUserFormState([...userFormState, userObject]);
    console.log(userFormState);
  }
function buildUserForm ( event ) { console . log ( event . target ) ; const id = event . target . value ; const name = event . target . innerHTML ; const userObject = { name : name , _id : id } ; setUserFormState ( [ ... userFormState , userObject ] ) ; console . log ( userFormState ) ; }
Builds array of objects with all info for Users in new Subgroup
Builds array of objects with all info for Users in new Subgroup