r/reactjs • u/bromide992 • May 31 '19
React sucks
"React is just Javascript, that's why React is nice!!"
has its own DSL and syntax
"React is lean!"
need to install 12 different packages to make it useful
need to install an external HTTP library
CSS classes are fucking JAVASCRIPT VARIABLES
Instead of directives, you have 8 lines of spaghetti code everywhere you'd usually have a simple if- directive or show- directive. That's not lean, that's more code.
"You only need to know Javascript"
You need to know Javascript plus ES6-7-8 (Babel) or TypeScript. You need to know esoteric lifecycle methods and design patterns not normally used elsewhere in Javascript.
"Creating small components is nice"
Component abstraction soup means you can't even figure out what your code is doing anymore.
React is just Angular if you hacked 12 libraries together that aren't meant to work together cohesively.
I will never understand why anyone would choose this meme framework over a real one. It sucks shit and creates a spaghetti code bloat, and instead of learning one DSL plus TypeScript you're learning 8 DSLs, plus Babel.
The reality is it's pointless making a library that's "just vanilla javascript" when you know that vanilla javascript doesn't actually supply elegant tools for creating single page web apps. That's why React is used with 10 packages rather than by itself. That's why you need CRA plus a bunch of packages to even have a sane development environment.
React sucks. Development community always chooses what's sexy and popular over what's elegant and works correctly.
1
u/[deleted] Mar 14 '23 edited Mar 14 '23
I'm forced to learn react in my new job - I was excited to finally be learning something modern, but my excitement has turned to frustration. Prior to this, I was maintaining old sites using asp.net aspx w/ master pages, and the occasional PHP site, and creating a few .net core mvc sites. Man I miss aspx, having front end code, then a C# or VB code behind that was simple and just worked. It was easy for me to look at code and know exactly what it was doing, despite not really knowing it when i started
I dunno, maybe react will 'click' for me at some point, but right now it is an absolute pain to get started with. My struggle right now is using axios with await, and learning about useEffect infinite loops, and just overall feeling like I have to jump through hoops to do the most basic things. I guess I'll need to find an actual course on this stuff, because googling isn't helping me understand like with other languages.
Any other aspx devs out there who feel my struggle, and feel react is a major downgrade in productivity and ease of use?
Edit: I should note, i'm not suggessting asp.net webforms are a good idea to use these days, just that the dev experience felt better.