单个SPA React Application Micro前端

问题描述

我有在create react app中开发的react应用程序。

现在,我正在使用单个spa集成微型前端。

我已经将React应用程序转换为单个spa。工作正常。

问题:

我还有另一个用CRA开发的react应用程序(创建react应用程序)。该应用程序还与Single SPA集成了

现在,我需要与主应用程序集成。

示例代码

https://github.com/gokulwebdeveloper/single-spa registerapplication( 'weather',() => System.import('http://localhost:8500/sample-sample.js'),() => location.pathname === "/weather" || location.pathname === "/" ? true : false );

请帮助我修复。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)