Skip to content

React 與 Vue 差異對照表

🔖 歷史參考文檔 - 早期技術選型時的框架對比表,僅供參考。當前專案使用 Vue 3。

  • 文檔性質: 歷史參考
  • 最後更新: 2025-10-07 (標記為歷史文檔)
主題ReactVue
元件語法JSXSFC(.vue 檔)
狀態管理useState, Context, Redux, ZustandPinia, Vuex, reactive/ref
組件溝通props, context, eventsprops, emit, provide/inject
路由react-router-domVue Router
生命週期useEffect, class lifecyclesetup(), onMounted, onUnmounted 等
資料流單向資料流單向資料流 + provide/inject
生態系建構工具CRA, Vite, Next.jsVue CLI, Vite, Nuxt
樣式方案CSS-in-JS, styled-componentsSFC style, CSS Modules, Tailwind
生態系套件MUI, AntD, React Query 等Element Plus, Naive UI, Vue Query 等
組件重用Hooks, HOC, Render PropsComposables, mixins

可依實際專案補充細節與團隊經驗