Umi@2作为qiankun的子应用
#5988
-
请问一个Umi@2的项目,如果作为qiankun的子应用,应该从哪里把bootstrap、mount、unmount导出? 尝试了在src/app.js中导出 export async function bootstrap() {
console.log('bright bootstrap...');
}
export async function mount(props) {
console.log('bright mount...', props);
}
export async function unmount(props) {
console.log('bright unmount...', props);
} |
Beta Was this translation helpful? Give feedback.
Answered by
sorrycc
Jan 18, 2021
Replies: 2 comments
-
umi2里能使用 |
Beta Was this translation helpful? Give feedback.
0 replies
-
https://github.com/umijs/umi-plugin-qiankun |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yuki070
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/umijs/umi-plugin-qiankun
有对应的 umi 2 版本,参考这里的安装说明。