How to use the react-imported-component.assignImportedComponents function in react-imported-component

To help you get started, we’ve selected a few react-imported-component examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github patrickleet / streaming-ssr-react-styled-components / app / imported.js View on Github external
/* eslint-disable */
    /* tslint:disable */
     
    import {assignImportedComponents} from 'react-imported-component';
    
    const applicationImports = [
      () => import('./pages/About'),
    ];
    
    assignImportedComponents(applicationImports);
    export default applicationImports;
github theKashey / react-imported-component / examples / SSR / typescript-react / app / imported.ts View on Github external
/* eslint-disable */
    /* tslint:disable */
     
    import {assignImportedComponents} from 'react-imported-component';
    
    const applicationImports = {
0: () => import('./components/Another'),
1: () => import(/* webpackChunkName: "namedChunk-1" */'./components/Other'),
2: () => import(/* webpackChunkName: "namedChunk-1" */'./components/OtherTween'),
3: () => import('./App.css'),
    };
    
    assignImportedComponents(applicationImports);
    export default applicationImports;