News for hackers. Stuff that matters.
Re:Am I wrong in hating React JS? by acconrad on Wednesday October 26, 2016 @12:06PM (#12797607)
You definitely have to learn a DSL - in JSX you have to use className instead of class for the HTML tag property. There are a few other examples of this, but the point is the argument doesn't hold water against Angular's templating language.
Re:Am I wrong in hating React JS? by botskonet on Wednesday October 26, 2016 @12:31PM (#12797875)
Learning a few differences for attributes names isn't nearly as involved as learning angular's entire custom attribute and syntax support though.

I would also add that for any web app truly utilizing these libraries, you're going to have to know how they get compiled and where your data is coming from. With Angular you have to learn about scopes, digesting, linking/compiling, etc.

Two-way binding was amazing to me when I first took up Angular, it made common tasks so easy but on an enterprise-level application it's a nightmare because you're quickly dealing with digest/event cycle issues, especially during automated testing. The control over data flow that React prefers makes the easy, common tasks more time consuming, but overall saves a massive amount of complexity.

Re:Am I wrong in hating React JS? by kentor on Wednesday October 26, 2016 @09:00PM (#12802122)
The reason why it uses `className` is because we're in javascript land (https://developer.mozilla.org/en-US/docs/Web/API/Element/cla...) So it's not a DSL when you really think about it. It's javascript.
Re:Am I wrong in hating React JS? by t3soro on Wednesday October 26, 2016 @10:58PM (#12802615)
className has always been the convention for accessing the class attribute in Javascript.

https://developer.mozilla.org/en-US/docs/Web/API/Element/cla...

Re:Am I wrong in hating React JS? by cri5ti on Thursday October 27, 2016 @08:24AM (#12804469)
And that's of course because pre ES5 you couldn't use keywords (class) as property names.