News for hackers. Stuff that matters.

Ask HN: Which Web Front end Framework to choose?

Web is fast changing platform. I need to choose good Frontend Framework for SPA that i want to develop. I want it to be stable and efficient.

I think that these are the choices: Vuejs , ReactJS and SvelteJS .

So,which one would you prefer and why? if it's other choice than the above , please tell. I am not here to start war but want to know your preference, that's it. Static rendering is not feasible as it's displaying dynamic data.

Please suggest

( 16 comments | 4 points | on HN )
Re:Ask HN: Which Web Front end Framework to choose? by sandreas on Monday May 24, 2021 @06:36PM (#27270495)
Svelte + Routify (https://github.com/roxiness/routify)

Because it is fast and lightweight.

Re:Ask HN: Which Web Front end Framework to choose? by schappim on Monday May 24, 2021 @07:17PM (#27270834)
It has been a while since I've used Svelte in anger.

Is the functionality of Routify now in SvelteKit[1]?

[1] https://kit.svelte.dev/docs

Re:Ask HN: Which Web Front end Framework to choose? by sandreas on Tuesday May 25, 2021 @01:46AM (#27273150)
> I've used Svelte in anger.

I also had a bad day (literally) figuring out how to use svelte with SCSS, TypeScript and a good routing framework but after that day it felt awesome. The boilerplate has always been a pain to me on nearly every framework and with svelte it was pretty ok-ish.

> Is the functionality of Routify now in SvelteKit[1]?

Maybe, did not know about that. Thank you, I'll definitely try it out.

Re:Ask HN: Which Web Front end Framework to choose? by sircastor on Tuesday May 25, 2021 @02:01AM (#27273260)
My order of preference is Svelte, Vue, React. I feel like they are in that order intuitive and quick to build a project.

I like Svelte a lot because of the size of its footprint vs the other two.

All that said, if you already know one of them - even just a little - just go with that. If you’re just trying to make a thing, get going and make it.

Re:Ask HN: Which Web Front end Framework to choose? by lmiller1990 on Monday May 24, 2021 @07:55PM (#27271112)
The one you know, or the one all your co-workers know. Otherwise just choose the one that's easiest to recruit for (React). They ideals are more or less the same and they solve the same problem.
Re:Ask HN: Which Web Front end Framework to choose? by aristofun on Tuesday May 25, 2021 @10:55AM (#27277617)
Modern react is mature, stable, thoroughly explored by community yet at the same time lean enough to start small (ie scalable and battle tested).

Svelte is promising but way too young.

Vue seems yet a tiny bit behind React in terms of community size and number of hi demanding real life use cases. As far as I see it.

In the end you should start with your specific requirements for the app, not from a fashion question.

There’s no and never be “one choice fits all” answer.

Re:Ask HN: Which Web Front end Framework to choose? by austincheney on Tuesday May 25, 2021 @06:03AM (#27274951)
I prefer none. I find them to be overkill and often unnecessary, so long as you are comfortable with the primary APIs of the web platform.

If you stress about composition then you will want to use one of those large frameworks. If you prefer to instead stress about feature delivery you probably are better off without them as they will limit your ability to do things in new and unpopular ways.

Re:Ask HN: Which Web Front end Framework to choose? by claudiojulio on Tuesday May 25, 2021 @08:36AM (#27276073)
Use svelte, it is the easiest and fastest of these three. To use react it is good to have a good command of javascript. The vue is easier than the react, but the vuex is very complicated. The svelte stores are very easy to use. And vue has some structures in the svelte are addressed in a simplified way, as methods and data computed.

Svelte is the present and the future!

Automatically translated.

Re:Ask HN: Which Web Front end Framework to choose? by deccanchargers on Tuesday May 25, 2021 @08:55AM (#27276208)
>> vuex is very complicated

there is vuex alternative called pinia[0] which is much simpler than vuex

[0]: https://pinia.esm.dev/

Re:Ask HN: Which Web Front end Framework to choose? by claudiojulio on Tuesday May 25, 2021 @01:36PM (#27279808)
It seems much easier even to me. Pinia can also be used with Svelte, as well as Vuex and Redux. Read the following to learn more: https://svelte.dev/docs#svelte_store
Re:Ask HN: Which Web Front end Framework to choose? by codingclaws on Tuesday May 25, 2021 @06:23AM (#27275099)
None as well. I like the browser js APIs and it's nice to avoid the front-end framework complexity.
Re:Ask HN: Which Web Front end Framework to choose? by afarrell on Monday May 24, 2021 @06:02PM (#27270212)
I would choose ReactJS because its what I know and because it seems to have the most momentum behind it.
Re:Ask HN: Which Web Front end Framework to choose? by iamjonjackson on Monday May 24, 2021 @07:55PM (#27271110)
The TALL stack might be an interesting option if you're more comfortable with the full stack development approach but with responsiveness built in.

But if you're just wanting to work pure client side, then JS it is!

I gather vuejs is a little simpler than React if you're starting out.

Re:Ask HN: Which Web Front end Framework to choose? by Raed667 on Tuesday May 25, 2021 @01:19AM (#27272870)
I enjoy working with React (and Next.js when I need server-side-rendering).

I like that JSX is close to native JS and doesn't have weird syntax like `v-bind`, `v-if` or `bind:value`.

Basically for learning, getting better at React means you get better at JavaScript.

Re:Ask HN: Which Web Front end Framework to choose? by agustif on Wednesday May 26, 2021 @03:33PM (#27295032)
React with NextJS for SSR and BlitzJS for full-stack webdev, and Prisma for ORM, and Postgres for Database
Re:Ask HN: Which Web Front end Framework to choose? by cordaciu on Wednesday May 26, 2021 @07:43AM (#27289212)
VueJs for me since it does what I need + ...Vuetify is great.