getData = (reactDOM) => {
  if (__ReactSightDebugMode) console.log('vDOM', reactDOM);
  const components = [];
  const rootElement = reactDOM.Mount._instancesByReactRootID[1]._renderedComponent;
  traverseAllChildren(rootElement, components);
  const ReactSightData = { data: components, store: __ReactSightStore };
  const clone = JSON.parse(JSON.stringify(ReactSightData));
  if (__ReactSightDebugMode) console.log('SENDING -> ', ReactSightData);
  window.postMessage(JSON.parse(JSON.stringify(clone)), '*');
}
Traverse React's virtual DOM and POST the object to the window.
The message will be recieved by React Sight chrome extension (the content script)

1. define rootElement of virtual DOM
2. recursively traverse down through props chain, starting from root element
@param {array} components - array containing parsed virtual DOM