News for hackers. Stuff that matters.
Re:Solidjs: Simple and performant reactivity for building us... by chabska on Tuesday April 22, 2025 @10:02PM (#43768026)
> I personally don't like that direction so looking forward to exploring new frameworks.

Why? React core has been exactly the same as it was ten years ago. Building a React SPA has not changed significantly, other than the growth in third-party libraries that complement the Core.

Recent developments in React has been about enabling its usage in wider problem domains, but not at the detriment of its previous use cases, so why would that affect you?

Re:Solidjs: Simple and performant reactivity for building us... by technion on Tuesday April 22, 2025 @10:06PM (#43768053)
Much of the official documentation now refers to server components as the "right" way to do certain things. Cra is end of life, with the replacement nextjs being heavily biased towards server components.

Your tooling certainly has changed in that you won't use cra any more, and I wouldn't agree that this direction does not detriment previous use cases.

Re:Solidjs: Simple and performant reactivity for building us... by math_dandy on Tuesday April 22, 2025 @10:25PM (#43768141)
I view create-vite-app with React presets as the spiritual successor of create-react-app, rather than NextJS.
Re:Solidjs: Simple and performant reactivity for building us... by johnny22 on Wednesday April 23, 2025 @12:42AM (#43768655)
I'd already switched to vite due to the lack of customization that one has with CRA.Even if create-react-app was still maintained, I'd never go back to it.
Re:Solidjs: Simple and performant reactivity for building us... by arkaic on Wednesday April 23, 2025 @11:47PM (#43779096)
Vite all the way....until that gets deprecated and forced to move to nextjs
Re:Solidjs: Simple and performant reactivity for building us... by mvdtnz on Tuesday April 22, 2025 @10:38PM (#43768181)
Really? So class components are still first class citizens and play well with existing ecosystem code?
Re:Solidjs: Simple and performant reactivity for building us... by esperent on Wednesday April 23, 2025 @01:02AM (#43768751)
> So class components are still first class citizens

Yes

https://react.dev/reference/react/Component

> play well with existing ecosystem code?

That's not something the React team has any control over so it feels like an unfair complaint.

However, besides external libraries that are specifically designed to work with hooks, I'd say quite a lot of things would still work. And you can always just use older versions of things, nobody is forcing you to upgrade.

Anyway, React has been using hooks for about 6 or 7 years now. Not quite the ten years claimed in the previous comment but not so far off either.

Re:Solidjs: Simple and performant reactivity for building us... by jakelazaroff on Wednesday April 23, 2025 @01:23AM (#43768861)
> That's not something the React team has any control over so it feels like an unfair complaint.

Sure it is — they could let you run hooks from within class components. Not only do they not allow that, they actively discourage you from writing class components in the documentation.

Even if they didn’t have control over that, though, how does the complaint feel unfair? When I buy into a tool, I’m buying into the ecosystem as well. If the ecosystem moves in a direction I don’t like, that’s a strong disincentive to using that tool!

Re:Solidjs: Simple and performant reactivity for building us... by owebmaster on Wednesday April 23, 2025 @10:49AM (#43772864)
> React core has been exactly the same as it was ten years ago

Are we not considering Hooks core yet?

Re:Solidjs: Simple and performant reactivity for building us... by 0xblinq on Thursday April 24, 2025 @12:33AM (#43779278)
Hooks were introduced in 2018. We're in 2025.

It's not 10 years yet, but we're pretty close to that.

Yes, time flies.