react-keeper icon indicating copy to clipboard operation
react-keeper copied to clipboard

动态加载组件

Open jiang263 opened this issue 8 years ago • 2 comments

<Route loadComponent={ (callback)=>{ System.import('../Products.js').then((Products)=>{ callback(Products) }) } } path='/products'/> 这个方法并不能动态加载组件啊

jiang263 avatar Dec 05 '17 06:12 jiang263

这个使用需要配合webpack多入口打包。推荐使用webpack的import()函数

lanistor avatar Dec 06 '17 13:12 lanistor

@jiang263 https://github.com/vifird/react-keeper/issues/44

itxuye avatar Feb 02 '18 06:02 itxuye