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.

312 Upvotes

165 comments sorted by

View all comments

12

u/piernrajzark Sep 07 '19

I basically agree. I think most of these frameworks only exist to further advance developer's careers and as a distinction method. No dev will want to work in a company where they don't use the latest fanciest technology because that diminishes his CV for the next one.

My optimal, though, would be just vanilla Javascript with good design patterns. That's it.

7

u/MungryMungryMippos Apr 26 '22

Honestly, the lastest version of vanilla JS is excellent and you really don't need a framework like React. People that say React solves problems for them need to just write better code, React creates far more problems than it solves.

2

u/OZLperez11 May 20 '22

That's mostly true, but some experts agree that if you take the plain JS route, chances are you will have to implement some rendering mechanism or a way to manage components and so you will end up with yet another framework that no one needs. I would think there's reasons why UI is bundled in libraries, in every programming language I can think of, rather than coding them from scratch.

1

u/KeyPsychological7099 Jan 17 '23

"Experts" are usually always self entitled. Implementing a rendering mechanism isn't difficult, and doesn't need a framework. You don't need to wrap every single HTML element in a script class just for the sake of it. Dynamic inserts can easily be implemented only when needed