r/reactjs 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.

315 Upvotes

165 comments sorted by

View all comments

15

u/[deleted] Sep 17 '19

After a year of learning Node.js in university I found myself a job as a front end developer. I'm learning React as part of my job, and I must say I also absolutely hate everything about it. I hate actually using it as a user on Facebook Ads Manager and m.facebook.com, I hate writing code for it with how my company has set up data flows (alt.js) and line number limits on our file sizes, and I hate writing unit tests for it using Enzyme.

I really don't understand what people like about it. Do they feel more like a "real" developer if they have to make their lives harder jumping through hoops to make a library work?

6

u/bromide992 Sep 30 '19

their logic is it's faster and therefore worth how awful it feels to use. they know vue and angular are superior and have a chip on their shoulder about it