Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react子应用嵌套vue子应用有问题 #15

Open
xcgs123 opened this issue Apr 5, 2023 · 1 comment
Open

react子应用嵌套vue子应用有问题 #15

xcgs123 opened this issue Apr 5, 2023 · 1 comment

Comments

@xcgs123
Copy link

xcgs123 commented Apr 5, 2023

export default function() {
const [visible, setVisible] = useState(false);
const curRef = useRef(null)

useEffect(() => {
return loadMicroApp({
name: "vue",
entry: "//localhost:3344/vue",
container: "#aa",
});
},[])

return (
<>


<Button onClick={() => setVisible(true)}>CLICK ME
<Modal
visible={visible}
onOk={() => setVisible(false)}
onCancel={() => setVisible(false)}
title="qiankun"
>
Probably the most complete micro-frontends solution you ever met

</>
);
}

在qiankun-demo/react-app-qiankun-sub/src/components/HelloModal.jsx文件里加上,就显示不出嵌套的子应用

@niexq
Copy link
Owner

niexq commented Apr 6, 2023

@xcgs123 哈喽小伙伴,方便提供下报错的项目地址吗?我clone到本地运行看看。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants