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

JavaScript

140 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 8 months ago* (last edited 8 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?

you are viewing a single comment's thread
view the rest of the comments
[–] Oikio 1 points 5 months ago* (last edited 4 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.