我有在创建反应应用程序中开发的反应应用程序。
现在我正在使用单个 spa 集成微前端。
我已将 React 应用程序转换为单个 spa。工作正常。
问题 :
我有另一个在 CRA 中开发的反应应用程序(创建反应应用程序)。这个应用程序也与 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
);
请帮我修复。