getDynamicComponent = componentImport => {
  // eslint-disable-next-line no-console
  console.warn(
    'getDynamicComponent is deprecated, use renderDynamicComponent instead.',
    'If you want to retrieve the component instead that of just rendering it,',
    'use dynamicLoader. See this issue to know how to do it: https://github.com/VulcanJS/Vulcan/issues/1997'
  );
  return renderDynamicComponent(componentImport);
}
Renders a dynamic component with the given props.

@param {dynamicLoader~importComponent|Promise<React.Component>} importComponent
@param {Object} props