phxhanyi
V2EX  ›  问与答

有前端老哥吗,咨询一个 Next.js 和 React 项目开发的问题

  •  
  •   phxhanyi · Apr 17, 2023 · 2165 views
    This topic created in 1135 days ago, the information mentioned may be changed or developed.
    求助各位老哥,我想把网上找的一个 Next.js 项目作为一个页面的一部分,嵌入到我的项目中该如何操作。

    目前我的项目就是一个刚搭好的 React 项目,有多个标签页的空壳子,Next.js 项目是 https://github.com/zhpd/chatgpt-plus ,点标签切换后,想在当前标签页下面显示这个项目

    我是做客户端的,临时给我的项目,前端完全不懂,求前端大佬帮帮忙,先能跑起来就行了
    9 replies    2023-04-17 10:42:52 +08:00
    Aloento
        1
    Aloento  
       Apr 17, 2023
    qiankun 微前端 了解一下
    phxhanyi
        2
    phxhanyi  
    OP
       Apr 17, 2023
    @Aloento 老哥知道吗 就是能先跑起来就行了
    molvqingtai
        3
    molvqingtai  
       Apr 17, 2023
    除了使用 iframe ,没办法直接嵌入
    phxhanyi
        4
    phxhanyi  
    OP
       Apr 17, 2023
    @molvqingtai 谢谢 我明天再咨询资讯
    yhappy
        5
    yhappy  
       Apr 17, 2023
    换个思路,在 Next.js 项目基础上加标签页呢
    phxhanyi
        6
    phxhanyi  
    OP
       Apr 17, 2023
    @yhappy 我这个项目是公司脚手架搭的,打开有个登录认证,然后再跳主页面,这样改我也不太懂
    yaphets666
        7
    yaphets666  
       Apr 17, 2023
    前端完全不懂的话,就用 iframe 就好了。微前端难度对你来说太大
    agdhole
        8
    agdhole  
       Apr 17, 2023
    iframe
    phxhanyi
        9
    phxhanyi  
    OP
       Apr 17, 2023
    谢谢各位 准备试一下 iframe
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3286 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 11:46 · PVG 19:46 · LAX 04:46 · JFK 07:46
    ♥ Do have faith in what you're doing.