This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* React.lazy helper for named-export components, instead of default-export | |
* | |
* @example const Comp = React.lazy(() => importNamed('./Component', 'Name')) | |
* | |
* @param {string} componentPath Path as used normally for import('path') | |
* @param {string} exportName The name of the export in this component | |
* @returns {Promise} The promise created by import() | |
*/ | |
export default (componentPath, exportName) => ( |