Giter Site home page Giter Site logo

Comments (4)

Boelroy avatar Boelroy commented on June 27, 2024

这个看你具体是什么框架,具体思路是目前 Application 的是用方式就是个纯组件,你可以通过路由切换来选择展示不同组件的道理是一样的,你可以通过切换路由来切换子应用

from alibabacloud-alfa.

rivers-fighting avatar rivers-fighting commented on June 27, 2024

这个看你具体是什么框架,具体思路是目前 Application 的是用方式就是个纯组件,你可以通过路由切换来选择展示不同组件的道理是一样的,你可以通过切换路由来切换子应用

我们这边是选择的react技术栈

如果有n个子应用,就创建n个application吗,内存方面会不会有问题?能不能n个子应用公用同一个application,让它可以动态加载和卸载不同的子应用。能不能麻烦抽时间写一个示例,谢谢!@Boelroy

from alibabacloud-alfa.

Boelroy avatar Boelroy commented on June 27, 2024

这里可以传递 子应用的 初始路径 来选择加载到那个子应用 https://github.com/aliyun/alibabacloud-alfa/blob/master/example/HostApp/ReactHost/src/index.js#L21

from alibabacloud-alfa.

Boelroy avatar Boelroy commented on June 27, 2024

n 个子应用也不会有问题,我们会正常的去卸载掉子应用中的内存占用 所以不会出现内存问题

from alibabacloud-alfa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.