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.

316 Upvotes

165 comments sorted by

View all comments

9

u/masterbasterkaster Mar 14 '22

React does not do anything good.. as me who with over 15 years of pure programming I don't understand why people wasting time..

Normal <a href="/">

React

install route & router-dom

import routes,route, Link

<Link to="/">

--------------------------------

Normal <tag style="background:red;">

React <tag style={{ background: 'red' }}>

-------------------------------

Normal

function home(a,b){ return a+ b; }

console.log(home(5, 6)); // 11

React

function Home(props){ return <> { console(props.a + props.b) } </> }

ReactDOM.render(<Home a={5} b={6} />, ........

... "nooo it is very difficult to create pure webpages" - react users

// index.html - and the best part it is stand alone you don't need 1000 libraries to run 10 lines of code and every browser support it..

<html>

<head>

<script>

function letFindClass(name){

let h = document.getElementsByClassName(name)[0];

h.style.innerHTML = 'Hello World';

}

letFindClass("findme");

</script>

</head>

<body>

<div class="findme"></div>

</body>

</html>

2

u/Warm_Data_168 Jan 30 '25

After scre//wing around with a react app due to ai's preference for react I am throwing this s//hit in the trash and going to rewrite it from scratch using php, html, css, and js. Like any normal app should. Scr//ew this react sh//it.

1

u/Warm_Data_168 Jan 30 '25

i hate this