News for hackers. Stuff that matters.
Re:Common Beginner Mistakes with React by MuffinFlavored on Saturday March 11, 2023 @10:54PM (#35116454)
> No complicated build systems or web pack or dependency management system.

I love statements like this. It's as if things are just complicated for the fun of it, not because they need to be/they solve complex problems.

Re:Common Beginner Mistakes with React by kupopuffs on Sunday March 12, 2023 @12:15AM (#35116913)
The complex problem of having great code turn compiled into shitty-ish code that some browsers support
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.
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?
Re:Common Beginner Mistakes with React by Joeri on Sunday March 12, 2023 @08:02AM (#35119112)
You’d be surprised how widespread support for newer javascript functionality is now that all browsers are evergreen.
Re:Common Beginner Mistakes with React by dimmke on Monday March 13, 2023 @03:09PM (#35140846)
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.

Re:Common Beginner Mistakes with React by nightfly on Sunday March 12, 2023 @04:33AM (#35118022)
When you have a problem that can be solved with a hammer and nails you don't break out the TIG welder
Re:Common Beginner Mistakes with React by j-krieger on Sunday March 12, 2023 @06:53AM (#35118640)
You also don‘t endlessly build strawmen on HN about people using TIG welders where a hammer would suffice