• 请不要在回答技术问题时复制粘贴 AI 生成的内容
feng32
V2EX  ›  程序员

OpenWRT 可以运行 React 前端页面吗?

  •  
  •   feng32 · Dec 27, 2020 via Android · 4306 views
    This topic created in 2149 days ago, the information mentioned may be changed or developed.
    没怎么用过 React,求指点
    5 replies  •  2020-12-28 16:33:48 +08:00
    pagxir
    pagxir
    Dec 27, 2020❤️2
    1
    react 是在浏览器端的,跟 OpenWRT 没有关系。
    gunpowderfans
    gunpowderfans
    Dec 28, 2020 via Android
    2
    把页面 build 成 index.html 这些就行了
    sbilly
    sbilly
    Dec 28, 2020
    3
    类似于这样的? https://github.com/zhaojh329/oui 这个是基于 vue 的
    macy
    macy
    Dec 28, 2020
    4
    可以啊,react 写好后会 build 成一个 index.html 加很多 js,openwrt 是个 linux,在上面跑个 server,把 index.html return 回去就行了
    Curtion
    Curtion
    Dec 28, 2020
    5
    像一楼说的一样,但是还是建议用 luci 那一套,可以省很多事。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   944 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 19:03 · PVG 03:03 · LAX 11:03 · JFK 14:03
    ♥ Do have faith in what you're doing.