5 ms·
React Hooks has its problems, but it got so many things right from the start - code written in 2018, when hooks first came out, still works today. No need to re
by orangepanda 3y ago
React Hooks has its problems, but it got so many things right from the start - code written in 2018, when hooks first came out, still works today. No need to rewrite everything when a new major release comes out.
That said, svelte5 does solve a lot of problems that stop me from trying it.
- timeon 3y ago> code written in 2018, when hooks first came out, still works today Does not Svelte from 2018 works today?
- orangepanda 3y agojQuery from 2009 also still works today. What I meant was, developers want to use the latest and greatest. Hooks added in 2018 havent changed, there’s no replacement api for them - it’s still modern code. They got the DX right from the start, that other libraries are still trying to emulate.
- Raed667 3y agothat's one thing I admired about the React team back then, they took the time to think about how things "should" work long term. The functional/hooks release was criticised as people liked their class components, but time has shown that hooks were the correct decision. I feel they lost that as people gradually rotated out of the team, around the time they announced concurrent-mode, now suspense and the half baked RSC "release".
- nicoburns 3y agoYeah, I'm pretty skeptical about concurrent mode. People have been trying to implement something like this since ~2010, and I haven't seen it done well yet.
- Rapzid 3y ago> Component re-rendered because hook 16 updated. DX Amaze.
- troupo 3y ago> They got the DX right from the start, that other libraries are still trying to emulate. The DX isn't "right". It's just the one they are sticking to. There are many issues with the actual developer experience when it comes to hooks in React. So it's a good thing that other frameworks are iterating and finding new and possibly improved ways of doing things. E.g. neither Svelte nor Solid require dependency arrays to effects or other reactive primitives. Their effects work everywhere, and not just inside component code. You're not beholden to the order and number of effects, unlike with hooks. Etc.
- JuanPosadas 3y agoI have a sapper (pre-sveltekit) project from 2019 that doesn't build. I needed to make a tiny update and neither my current computer nor my previously configured netlify autodeploy can produce a build that works. I have no idea, my first guess was that one of the sapper people didn't pin the version of an important dependency, but the project was simple enough that I just wrote a new one from scratch.
- gnaritas99 3y ago[dead]