Comments (4)
这个看你具体是什么框架,具体思路是目前 Application 的是用方式就是个纯组件,你可以通过路由切换来选择展示不同组件的道理是一样的,你可以通过切换路由来切换子应用
from alibabacloud-alfa.
这个看你具体是什么框架,具体思路是目前 Application 的是用方式就是个纯组件,你可以通过路由切换来选择展示不同组件的道理是一样的,你可以通过切换路由来切换子应用
我们这边是选择的react技术栈
如果有n个子应用,就创建n个application吗,内存方面会不会有问题?能不能n个子应用公用同一个application,让它可以动态加载和卸载不同的子应用。能不能麻烦抽时间写一个示例,谢谢!@Boelroy
from alibabacloud-alfa.
这里可以传递 子应用的 初始路径 来选择加载到那个子应用 https://github.com/aliyun/alibabacloud-alfa/blob/master/example/HostApp/ReactHost/src/index.js#L21
from alibabacloud-alfa.
n 个子应用也不会有问题,我们会正常的去卸载掉子应用中的内存占用 所以不会出现内存问题
from alibabacloud-alfa.
Related Issues (20)
- 子应用在本地开发时,无法热更新,如何解决
- 跟icestark比起来有啥优势么,看代码复杂度很高,但实际跟飞冰的原理基本一样 HOT 3
- vue子应用如何接受props? HOT 1
- demo中的React子应用出错
- React子项目中用到jQuery HOT 2
- 打正式包 需要Access-Control-Allow-Origin HOT 5
- postcss-prefix-wrapper 对 font-family 处理有误 HOT 1
- example运行起来后报错 HOT 1
- Umi架构下的应用,目前无法成为子应用 HOT 2
- 是否支持vite构建作为子应用 HOT 3
- 支持blazor webassembly框架吗?.net 系的 HOT 1
- ng-portal是否可以可以更新一下? HOT 3
- 保持宿主路由同步后浏览器返回前进按钮功能失效 HOT 1
- 刷新页面后子应用返回首页 HOT 1
- 兼容性问题:browser-vm模块是否可以不使用 es6 Proxy 实现?
- 您好,关于angular,我没在官网看到当angular作为子应用时的demo HOT 1
- 项目支持vue3吗? 没看到有vue3的demo HOT 1
- 官网更新 HOT 2
- 如何实现一个更加纯粹的iframe HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alibabacloud-alfa.