Remix.run Logo
andrewmcwatters 17 hours ago

I moved my entire business off React and now I don’t have to worry about tinkerers at Meta deciding to reinvent React every 2 years and tricking everyone by keeping the name again and again.

Web components are fantastic. They are the real future.

Xenoamorphous 10 hours ago | parent | next [-]

Apart from classes -> hooks what big changes have happened?

rhet0rica 14 hours ago | parent | prev | next [-]

https://i.imgur.com/7ITZb7d.jpeg

Aren't web components a pain in the ass to use?

prisenco 11 hours ago | parent | next [-]

They could be better, but they're not nearly as difficult as people like to make them out to be.

And they come with extra benefits like no build tool required and native browser support.

bythreads 13 hours ago | parent | prev [-]

Nope

Lit.dev

brenainn 13 hours ago | parent [-]

I like lit. I'm not primarily a web developer and I've found it intuitive and easy to read and write. What I find more confusing than frameworks is building, bundling, ES modules, the whole NPM ecosystem.

balamatom 11 hours ago | parent [-]

>building, bundling, ES modules, the whole NPM ecosystem.

That's evolved hand in hand with the React monoculture over the past 10-15 years, maybe by way of a project called Babel.

Babel set out to provide progressive enhancement for the original ES5 to ES6 migration, and then in classic POSIWID fashion began to thrive on a suite of a la carte incompatibilities.

That experience is as much a contributor to the current automatism to to reach for (non-configurable) Prettier and Eslint, or more, than any rogue devs imposing fell coding styles.

So yeah, plenty of things in JS infra that look like they've been designed to be a pain in the ass (a.k.a. "behavioral nudge", towards TS, what else) and very much seem like the result of more inept moat-building in the then-newly ballooning field of frontend dev.

Readers might look up whan an import map is sometime, as well as where it is and isn't supported. How TS handled ES modules at the time Node16 changed their ESM support. Does ESM `default` correspond to CJS `module` or `module.exports`? Room for vendors to fuck up in innovative ways all round, this whole rotten ecosystem.

Readers are also advised to try Deno if they haven't yet. On Node, try Vite instead of Webpack. Most importantly, try Lit with JS, import map, no builder/bundler, and test suite with coverage. Work out what is most comfortable for you, work out exactly how much toolchain makes you the most productive, and afterwards don't forget to ask yourself why the React cultists want to stick everyone in a hairshirt if not a straitjacket.

echelon 13 hours ago | parent | prev [-]

React gets reinvented every year?

Are you talking about functional components instead of class components? What big changes am I missing here? It seems pretty static to me.

komali2 7 hours ago | parent [-]

Maybe they are, I can't speak for them but I've noticed that React hasn't been "reinvited every year" since maybe, 2019 or so, whenever we changed from functional components to class components and then back to functional with hooks. My feeling is that people who have been devving in react post-all-that-nonsense are living in the new world of a much more stable framework that does have new things coming in (Server Components or whatever) that you can just ignore, whereas there's those of us that had to learn this Hot New Framework, and then like a year later relearn how to use this Hot New Framework, and then a year later have to relearn AGAIN this Hot New Framework. It was the last time but for me at least I'm still scarred, and it reminds me of the way people talk about the move from Python 2 to Python 3: I existed well into Python 3 world so I was like, what is everyone complaining about? Upgrade and move on. But there was a time when the whole world was Python 2 and for a period of time half that world was broken. I imagine people get scarred from that kind of thing and carry that experience and distrust through the rest of their career.

brazukadev 3 hours ago | parent [-]

Are you saying that the recent changes wasn't a reinvention? React now looks like PHP ffs.