getState = (component) => {
  if (component._instance && component._instance.state) return component._instance.state;
  return null;
}
Return's a React component's state, if any
@param {React Element} component