phxhanyi
V2EX  ›  问与答

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

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