function grabChildComponents(imports, fileContent) {
  // console.log(imports, fileContent, '***');
  // grab all import object name from import array;
  let compNames = imports.reduce((arr, cur) => {
    // skips <Provider/> component from redux
    if (cur.name !== 'Provider') {
      arr.push(cur.name);
    }
    return arr;
  }, []);
  // console.log(compNames, 'XXX');
  // format all import names for regex
  compNames = compNames.join('|');
  let pattern = '<\s*(' + compNames + ')(>|(.|[\r\n])*?[^?]>)'
  const regExp = new RegExp(pattern, 'g');
  // finds all components that match imports;
  let matchedComponents = fileContent.match(regExp);

  return matchedComponents;
}
returns an array of React Components in String Format, checks imports array and filters fileContent to find Components;
@param {Array} imports - Array of Objects with name and path of all Import Objects;
@param {String} fileContent - String of File Content;