this post was submitted on 09 Mar 2024
3 points (80.0% liked)

JavaScript

138 readers
1 users here now

A community to discuss all things JavaScript (and related areas, i.e. TypeScript)

founded 1 year ago
MODERATORS
3
jdd (lemmy.sdf.org)
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
 

JavaScript help! Reaching out for some collective wisdom... what's the current modern stack in JS? For years I've used: React, Node, Webpack. But now, evidently, I need: next, deno, vite ? I have read multiple articles saying that I'm absolutely required to use "vite" because webpack is too complicated for any human being. The official react website insists I should be using Next. Is this true?

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 3 points 7 months ago
[โ€“] Oikio 1 points 3 months ago* (last edited 3 months ago)

A lot of guides confusing nowadays.

But overall if you are looking for SPA - React can be bundled with Vite, that's what we have at my current company. Vite is good and straightforward, it is built for the purpose and does majority of the things out of the box in comparison to the Webpack.

If you need SSR, you can use Next, though I would prefer Remix https://remix.run/blog/remix-vs-next, IMO they did better job to API surface than Next.

But I would not bother, unless you need search engine optimization. For majority of web apps that do not need it - benefits of SSR are negligible.