Mapping key value pairs between two JavaScript objects
It might be a little cleaner to use .reduce instead of for...of... loop:

Object.keys(widgetsObj).reduce( (obj, key) =&gt; {
    obj[key] = this.components[widgetsObj[key]];
    return obj;
}, {});