TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Migrating to Next.js from Create React App

49 pointsby omarfarooqover 3 years ago

9 comments

brundolfover 3 years ago
There are some things I don&#x27;t love about Next - its TypeScript declarations aren&#x27;t great, it has a fair share of &quot;magic behavior&quot;, and it truly is a &quot;framework&quot; where some features won&#x27;t work until Next adds explicit support for them.<p>But it is insanely productive if you want to do a mixture of static rendering&#x2F;server rendering&#x2F;client rendering. The abstraction leaks here and there, but mostly it holds up, and more importantly almost all of your code can be shared. If you want to do just one of the three, there are better options. But if you&#x27;re doing client-side + one or both of the other two then it&#x27;s amazing, and I don&#x27;t know of anything better.
评论 #28412068 未加载
评论 #28414248 未加载
评论 #28412066 未加载
haywirezover 3 years ago
Had several requests lately for the exact opposite pattern — migrating bloated Next.js projects to vanilla React SPAs.<p>Razzle[0] seems like a workable alternative if you need static exports for optimizations such as link unfurling. Still looking for something that isn&#x27;t based on Webpack (ideally esbuild or swc)— would appreciate links in replies.<p>[0] <a href="https:&#x2F;&#x2F;razzlejs.org&#x2F;docs&#x2F;static-export" rel="nofollow">https:&#x2F;&#x2F;razzlejs.org&#x2F;docs&#x2F;static-export</a>
评论 #28414247 未加载
评论 #28413251 未加载
评论 #28418963 未加载
presentationover 3 years ago
I just did a migration for a pretty large CRA app to Next.js, and it wasn&#x27;t particularly simple. A lot of stuff changes - for instance `react-router` is common in CRA but NextJS has its own routing system and link components, `loadable-components` is what we used in CRA for code-splitting but instead Next has `next&#x2F;dynamic`, managing the `head` also changes... these differences pile up.<p>I ended up making contexts that contained generic cross-platform implementations of stuff like links and dynamic components, that shared code could consume in order to function on both CRA and NextJS simultaneously - this made it possible to move things incrementally.
评论 #28411985 未加载
评论 #28411889 未加载
评论 #28411972 未加载
splchover 3 years ago
I&#x27;m looking forward to &quot;Migrating to NewerAndHeavierFramework.js from OldAndHeavyFramework.js&quot;
pjmlpover 3 years ago
Interesting how JavaScript frameworks keep rediscovering server side rendering.
victorbstanover 3 years ago
I’m migrating to post.js after next.js
评论 #28414226 未加载
fictionfutureover 3 years ago
Next is nice and all but FactorJS V3 is looking awesome. Check it out if you haven&#x27;t seen and don&#x27;t mind Vue
评论 #28416233 未加载
评论 #28411984 未加载
vjeuxover 3 years ago
The title should be changed from “from React.js” to “from create-react-app”. Next is still based on React.js.
评论 #28411981 未加载
ManuelKiesslingover 3 years ago
If SEO demands are the driving factor for your core architecture decision, then surely your users are not in the driver’s seat.
评论 #28414220 未加载