react-app-qiankun-main icon indicating copy to clipboard operation
react-app-qiankun-main copied to clipboard

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

Open xcgs123 opened this issue 1 year ago • 1 comments

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</Button> <Modal visible={visible} onOk={() => setVisible(false)} onCancel={() => setVisible(false)} title="qiankun" > Probably the most complete micro-frontends solution you ever met </Modal> </> ); }

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

xcgs123 avatar Apr 05 '23 10:04 xcgs123

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

niexq avatar Apr 06 '23 13:04 niexq