Re:Common Beginner Mistakes with React
by irrational on Sunday March 12, 2023 @01:25AM
(#35117341)
I’m not sure the complex problems these tools were originally created for still exist. For example, do you really need to support old browsers? If not, you probably don’t need a transpiler anymore.
[ Parent
| on HN ]
Re:Common Beginner Mistakes with React
by squeaky-clean on Sunday March 12, 2023 @01:38AM
(#35117420)
If you're using Typescript you need one.
Re:Common Beginner Mistakes with React
by mirekrusin on Sunday March 12, 2023 @04:39AM
(#35118052)
Unless you’re using it just for type checking js/jsdoc.
Flow is much better in this area.
Re:Common Beginner Mistakes with React
by robertoandred on Sunday March 12, 2023 @03:18AM
(#35117632)
Do you think there haven't been any new JS features in the past ten years?
You’d be surprised how widespread support for newer javascript functionality is now that all browsers are evergreen.
Well, webpack has been replaced by vite (for those who pay attention to front-end trendfuckery) which is much simpler than Webpack and Babel is eliminated.
We are still not quite at the point where it’s practical to not have a module bundler. Handling things like imports etc is still necessary.
But we are moving away from React. Things are slowly going back to sanity. SvelteKit is an excellent step in this direction IMO.