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

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

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