Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Ok hear me out, react as a whole is just so gross you would be better off replacing it completely
-
lessi1422yI have not used Vue but bro I think React and JSX is not that ugly
Anyways, who here will be creating Vuact? -
@green-portal I really like react but I can’t stand JSX. Every time you need to conditionally render a complex component it turns into a jumble fuck of indentations and duplicated code. There are trade offs I get it, and I like having the ability to have JS + HTML in the same file, but by god it can create some ugly looking code.
-
I somewhat have to agree with @phat-lasagna. I use both React and Angular. I do appreciate how Angular forces you to separate logic from view (for the most part). With React I’ve been tempted more than once to place a bunch of logic in JSX (in an array.map for instance) and I’m not a fan of calling functions within JSX because it adds to the ugliness and confusion.
-
React endorses you to shove templates in functions... Why the f- would you want that? Component is damn component, period.
JSX is a plague of existence. -
@red-knot yeah I might be biased bc Angular is how I first learned web dev. Like angular itself is bloated af, but at least you don’t spend so much wasted time trying to figure out where something is when you have to make a change.
-
h3rp1d3v5232y@phat-lasagna shouldn't you create your own <For/> components? Get your points. Map in jsx is just too easy
-
@h3rp1d3v I mean I agree, it’s nice, but not something I would choose a framework over. Also, I don’t mind JSX if I work on my own shit. All my rants are about the effects shitty developers have had on projects I’m forced to fix. So far, if you are shit at programming, react can get messier than other frameworks imo.
-
@phat-lasagna and this is why you shouldn’t use React in any ”real-world” project. Because let’s face it, most developers are shit, and giving them a tool that enables them to easily write shit code is not a good idea.
-
@100110111 is this why people hate FE + JS so much is because of the lack of enforced coding standards through the code itself?
-
@phat-lasagna I guess? All I’ve noticed is that any tool is fine when wielded by a skilled dev who cares enough about code quality, but there are some tools you never should give to the majority of developers, since it’s too easy to produce bad code in one way or another. I do see it more in the JS world than elsewhere. The horrible C# codebases I’ve seen, for example, maybe have very questionable design decisions and I’d fire the architect if I could, but the code itself usually isn’t that bad. Interestingly, the majority of PHP codebases I’ve worked with have been well designed and written - some curious design desicions, yes, but that’s about it.
Ok so hear me out, a project that uses React but remove JSX and replace with a VueJS style of conditional rendering. JSX is so gross and I can’t believe people still use it.
rant