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
-
Until a clear winner emerges, I'm aiming to stay as far away from all frontend frameworks as possible.
-
Tounai13585yI use both, and to me, React has two advantages over Vue
- error messages are clearer. Most of the time, it explains what is wrong in the console, and a simple google search is solving absolutely everything
- React uses less magic to compile (I don't use CRA), so the behavior is more understandable
Plus it's backed by Facebook, which is important because FB has consistency, unlike Google
the only weakness to me is the lack of guidelines about what you should do and don't. -
eptsousa3735yAgree, besides the cli helps to keep things standardized. But again react is a library so I guess it’s not comparable on that point.
-
As an engineer on Angular, I just look down from Olympus and sip my lemonade in amusement.
-
RobbieGM365yI agree--the lack of a standard way to do CSS in React results in lots of weird solutions. However, it's hard for me to go back to Vue because I love the simplicity and TypeScript-friendliness that JSX and React (respectively) provide. Vue has it's own kind of bloat--tons of features that allow you to compose components together in ways that violate "props down state up" and a huge API of mostly overcomplicated stuff that starts with "$".
-
@RobbieGM There isn't a standard way because we do not do css in js. We do id-s and classes. The css is written once, compiled once by the browser and never altered. We can fucking read attributes in CSS. We have zero reason to write css in JS. Jesus Fucking Christ, why do people always find a way to absolutely rape the system and make the pipelines do a loopty-loop? Why?
-
@lopu I don't think content can be actual full-featured HTML. It would have pretty fucking terrible consequences if you could assign DOM children to any element with css.
-
msdsk31805y@Lor-inc
@M1sf3t
I made an SCSS system with documentation in the SCSS files themselves - I would parse the comments in a static page generator that would automatically turn the entire file into a neat documentation website. It might be sketchy but it works really well.
As a vue fan who has to work with react - I don't understand the appeal of the latter. Everything seems just pointlessly dotted with boilerplate, grossly over-engineered (if that's what I should call solutions like the react approach to CSS-in-JS) but at the same time very clunky.
Honestly, the only convincing point for using React that I've heard is about it being backed by Facebook - but, on the other hand, After having to work with some facebook IT solutions and knowing the shit they could pull with their APIs and stuff, I wouldn't count it as too big of an upside.
Why didn't you switch from react to vue?
rant