Re:Svelte 5 is not JavaScript
by tracerbulletx on Tuesday February 18, 2025 @01:55PM
(#43093616)
A React class component from 10 years ago will still work in React today perfectly well, and is doing so in large codebases around the world.
[ Parent
| on HN ]
> A React class component from 10 years ago will still work in React today perfectly well,
This isn't true.
ComponentWillMount and related methods were deprecated and then removed.
Yes, they allowed an escape hatch of UNSAFE_ComponentWillMount etc, but that still requires work to make it compatible, so it definitely doesn't "[work] perfectly well".
Re:Svelte 5 is not JavaScript
by LegionMammal978 on Tuesday February 18, 2025 @02:00PM
(#43093674)
Then again, React projects tend to use fast-moving things on top of React, like Redux or NextJS or CRA or whatever. Personally, I enjoy writing stuff in bare React since I like its model, but people tend to steer well clear of that, especially these days with compilers and bundlers and whatnot attached to the frameworks.
Re:Svelte 5 is not JavaScript
by tracerbulletx on Tuesday February 18, 2025 @02:06PM
(#43093743)
I agree, bundlers and bundler plugins have probably been the main thing people see with JS ecosystem and think is overly complicated.