TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Has anybody moved from using a React SPA framework to Phoenix LiveView?

3 点作者 mmczaplinski超过 2 年前
What was your experience like and what challenges did you encounter?<p>I&#x27;m interested in the overall pattern rather than specific frameworks. So if you were using Vue&#x2F;Angular&#x2F;Svelte and migrated to Hotwire&#x2F;Livewire that also works.

1 comment

tlack超过 2 年前
Not quite an SPA, but we migrated our data-heavy site Classic.com from Next.js to Phoenix + LiveView + Surface.<p>Despite me being the only person with Elixir knowledge on the team at start, it only took our small team ~5 weeks to get a pixel-perfect replica of our most important set of page handlers.<p>Benefits:<p><pre><code> - 4X reduction in server resources while being faster and more responsive - Much more flexibility in how we implement things - Feels easier to maintain - Much better introspective capabilities (observing the running system) - SEO boost from better Google Lighthouse score (from mid-teens to mid-80s) </code></pre> Challenges:<p><pre><code> - Definitely requires more thought to get certain things right; the component model is more complex (but more capable) - Fewer programmers with Elixir knowledge (but I think it&#x27;s a benefit: never have to interview an idiot) - Little bit harder to configure for hosting&#x2F;cloud but not too bad</code></pre>