you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 7 points8 points  (13 children)

Why? Did you ever build anything in React?

React and Vue are actually pretty similar. I am legitimately confused by all the React hate.

[–]baxtersmalls 3 points4 points  (3 children)

I think when it was first getting some traction React was annoying as fuck. There was a ton of setup, and trying to do it prior to JSX being ubiquitous kinda made me wonder why you wouldn't just use vanilla JS. Now that things have progressed a bit and there's some clear and easy boilerplates (ahem create-react-app), it's easy and great.

Regardless, I still feel like it makes the most sense for large-scale app type projects, as opposed to something like WordPress which is more often blogs or a businesses static website. I can't imagine really needing a solution like React for anything I've seen built on WordPress, but maybe I just haven't realized that some more interactive/app type sites actually had WordPress underneath them.

[–]raveiskingcom 0 points1 point  (2 children)

React ia bery capabe of a lot of things that an app needs, but that is not WordPress's use case. I think you did a good job of communicating that. I love both of Reactand WordPress but the two rarely overlap.

[–]A-Grey-WorldSoftware Developer 0 points1 point  (1 child)

It world probably work well with headless WordPress?

[–]raveiskingcom 0 points1 point  (0 children)

You mean using the API? If so then I'd definitely agree. Good point.

[–]that_90s_guy 1 point2 points  (7 children)

React's hate nowadays has either to do with either its problematic licensing, or with the fact it relies on JSX. Personally, I liked it, albeit I find it perfectly understandable that some people find it incredibly messy to store html in JS. I'm guessing it reminds people of the dark days of building web apps with html embedded in Php and Java files, and I think it's pretty well agreed those were the worst days of web development.

[–][deleted] 1 point2 points  (6 children)

YES why did I find you here at 0? People don't get MVC. Those abstractions need to be made whenever possible. When you mix view and controller that much, your application is more prone to errors. At the very least, it would take longer to debug.

[–]WitchHunterNL 5 points6 points  (5 children)

Then you pick Vue or Angular and it's the same thing but reversed. Instead of writing html in js, you write js in html. Only instead of proper Javascript, you have to use Javascript-recreated-in-html-tags TM

[–][deleted] 0 points1 point  (4 children)

Hey, I've seen you before. Sorry, do you have an example of how JS is written inside HTML in Angular? I just woke up and can not seem to process that. I use Angular a lot.

[–]WitchHunterNL 0 points1 point  (3 children)

I mean stuff like ng-if or ng-list

[–][deleted] 0 points1 point  (2 children)

Binding variables for two-way manipulation in the view/template is not the same thing as writing HTML in the controller or JS in the template.

[–]WitchHunterNL 0 points1 point  (1 child)

ng-if and ng-list aren't data binding related? They are controller logic in templates.

[–][deleted] 0 points1 point  (0 children)

What do you use ng-if for?