News for hackers. Stuff that matters.
Re:React is a fractal of bad design by pupppet on Tuesday March 07, 2023 @10:18PM (#35064796)
Not to start an unholy flame war, but if you were to start a new project and didn’t need to worry about the ecosystem or workforce, what framework would you choose? Vue? Svelte? Something else?
Re:React is a fractal of bad design by taveras on Tuesday March 07, 2023 @11:59PM (#35065451)
SolidJS
Re:React is a fractal of bad design by ctom96 on Wednesday March 08, 2023 @12:05AM (#35065476)
Svelte for me
Re:React is a fractal of bad design by runarberg on Wednesday March 08, 2023 @12:26AM (#35065582)
Honestly just use what you know. Unless your goal with the project is to learn new things or to have fun, than go with what is most interesting for you. Or if you are in a larger team, then talk to your teammates and try to get a consensus around what you are most comfortable with collectively.

I only advice against using a niche framework if you suspect the project is gonna be long-lived and managed by a medium to a large team, in that case pick the one of the big ones—React, Angular, Vue, or Svelte—which your teammates can agree with.

Re:React is a fractal of bad design by FractalHQ on Wednesday March 08, 2023 @01:52AM (#35066031)
Svelte is a no-brainer here.
Re:React is a fractal of bad design by machiaweliczny on Wednesday March 08, 2023 @03:58AM (#35066802)
How’s debugging?
Re:React is a fractal of bad design by illiarian on Wednesday March 08, 2023 @02:03AM (#35066093)
Svelte or SolidJS.
Re:React is a fractal of bad design by michaelchisari on Wednesday March 08, 2023 @02:03AM (#35066096)
I'm interested in what's happening in the MPA space. The Page and View Transitions API that the chrome team is working on, partial update libraries like htmx and unpoly, etc. If payloads are tight and servers snappy, many of the concerns that led to complex SPA architectures in the first place have begun to wither away.
Re:React is a fractal of bad design by 0xblinq on Wednesday March 08, 2023 @05:01AM (#35067158)
Hotwire and Stimulus are great. They’re widely used within the league of “sprinkles” libraries and it’s well maintained. You can use it with any backend framework. I use it with Laravel and it’s a pleasure to work with. But it’s not trendy or fashionable, so expect a lot of looking down at you for using it.
Re:React is a fractal of bad design by darkhorse13 on Wednesday March 08, 2023 @02:06AM (#35066118)
Svelte. If I really want JSX, then I would pick Solid.
Re:React is a fractal of bad design by _s on Wednesday March 08, 2023 @02:41AM (#35066323)
Deno / Fresh.

I despise what NPM has become, and how complex / time consuming the build pipeline of front end apps is.

It’s still not a mature framework yet but hot damn does it excel at just getting out of my way and letting me ship stuff.

Re:React is a fractal of bad design by norman784 on Wednesday March 08, 2023 @03:25AM (#35066604)
I don't know about Vue3 (I used in the past Vue2 only), but Svelte is similar to React, I'm migrating a small/medium project from React to Svelte and it feels too easy most of the time to port component by component, also to me, at least to this point, Svelte feels more performant and you have 100% control over the reactivity without too much `use{function}`.

I would recommend you to build a small project, maybe a Todo app in every framework you want to try, or maybe if you have a project, build a small part of it in each (I will pick the part that you think is the trickiest to build with React or the framework you are actually using).

Also I'll recommend to also check Qwik and Fresh(deno).

Re:React is a fractal of bad design by dgb23 on Wednesday March 08, 2023 @03:25AM (#35066609)
I just started one small project that is a single component that talks to our API and is rendered on an external website. I used lit-html for it. Very small, very fast library for this kind of thing. No build tool required. I choose my own (smaller, simpler, more straightforward) way of managing state.
Re:React is a fractal of bad design by pcthrowaway on Wednesday March 08, 2023 @03:46AM (#35066730)
I find Svelte phenomenal.

But I'm also interested in trying Solid.js and Vue, and for some types of projects I'd likely even go Astro+Svelte or Astro+React.

Hard to speak authoritatively on the matter though because over my career I've only done vanilla JS, jQuery, Backbone.js, React, and then Svelte, in that order, and each has felt like a leap forward in evolution

Re:React is a fractal of bad design by amardeep on Wednesday March 08, 2023 @04:02AM (#35066820)
Standard ones I would like to try are Solid/Svelte/Vue

- Lit if I wanted to share components with other teams

- Marko if the site had lots of static content

- Qwik if speed was paramount

- Fresh too looks interesting

Re:React is a fractal of bad design by quectophoton on Wednesday March 08, 2023 @04:23AM (#35066914)
Mithril.js, without JSX.
Re:React is a fractal of bad design by 0xblinq on Wednesday March 08, 2023 @04:58AM (#35067148)
Stimulus and Hotwire (on top of Laravel or any other decent batteries included framework).

Not a single one of the many projects I’ve worked on in the last 10 years needed such a level of interactivity that it justified the trade offs of using react or any other frontend-heavy frameworks.

I’ve seen entire CRUD spas that would have been built in 20% the time if we didn’t have to build a graphql api, figure outs authentication and permissions, integrate that with a custom validation setup, integrate all of the above with the translations systems, coordinate deploys or do forward compatible migrations, etc, etc. so much energy (and money) wasted.

Re:React is a fractal of bad design by gushogg-blake on Wednesday March 08, 2023 @05:10AM (#35067214)
Svelte
Re:React is a fractal of bad design by citeguised on Wednesday March 08, 2023 @05:17AM (#35067256)
WC with LitElement (Shadow DOM disabled) for a SPA (if no SSR is needed).
Re:React is a fractal of bad design by reverseblade2 on Wednesday March 08, 2023 @06:47AM (#35067866)
Web Components, Service workers, Lit.dev, htmx, declarative shadow dom. These are the modern tools you need.
Re:React is a fractal of bad design by gg2222 on Wednesday March 08, 2023 @07:30AM (#35068213)
Solid JS It will have a very easy learning curve for React users too.
Re:React is a fractal of bad design by aquaductape on Monday March 13, 2023 @03:59PM (#35141601)
Be careful on spreading the statement "easy for React users", yes that's true for using JSX, but for React developers trying out SolidJS, make sure not to desctructure props, get rid of rerending function mental model, components only runs ONCE so reactivity works by tracking reactive elements(signals/stores) inside JSX or effects(createEffect, createMemo ect), that means no early returns. If a React developer (I've witnessed this with Twitch streamers), jumps into SolidJS blind without taking tutorial, they get lost into rerender mental model.
Re:React is a fractal of bad design by satvikpendem on Wednesday March 08, 2023 @10:24PM (#35077997)
I'd still use React, purely to be able to use JSX without another templating language, and I think in its functional paradigm as well.