Skip to content

wangxh89/load-remote-react-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

load-remote-react-component

示例

在loadable-base中导出umd对象

  output: {
    filename: "[name].js",
    libraryTarget: "umd",
    library: "AwesomeComponent",
  },

在load-todo中 采用loadjs进行加载

示例(dva)

loadable-todo 导出modle与 component main.js

import SearchComponent from './pages/Search/search';
import SearchModel from './models/search';
export const RWSLib = {
  SearchComponent,
  SearchModel
};

use-dashboard 采用loadjs进行加载

About

加载远程react组件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published