yedra
V2EX  ›  问与答

React Server Component 在组件中直接调用 DB 怎么感觉这么别扭呢

  •  
  •   yedra · Jan 30, 2024 · 1179 views
    This topic created in 1011 days ago, the information mentioned may be changed or developed.

    我看到 NextJS 的 App Router 目前推荐这种方式;

    但如果前端不止有 Web ,还有 iOS/Android App ,后端岂不是没法复用了?

    1 replies  •  2024-01-30 15:20:19 +08:00
    8X96ZltB8D7WggD7
    8X96ZltB8D7WggD7
    Jan 30, 2024
    1
    很别扭,但是符合 vercel 的商业利益
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4744 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 07:58 · PVG 15:58 · LAX 23:58 · JFK 02:58
    ♥ Do have faith in what you're doing.