News for hackers. Stuff that matters.
Re:Crafting a high-performance TV user interface using React by eropple on Thursday January 12, 2017 @02:24PM (#13385247)
The thinking--and I'm not sure I agree with it, but it doesn't seem that objectionable--is that, while the HTML/CSS/JS separation makes a lot of sense for documents, it does not necessarily make as much sense for applications. HTML is just being used as a rendering language, not as a content description language, if that makes sense? And so the split between them might not make as much sense.

As a template engine (which I'm not totally sure is the correct term for it), I will cape up for it (more from a React Native perspective than a React perspective, and with the caveat that I think the JS world is mostly a crime-in-progress). I haven't found something that I've enjoyed working with in the JavaScript world nearly as much as React.

Re:Crafting a high-performance TV user interface using React by Akujin on Thursday January 12, 2017 @02:32PM (#13385318)
So 100% agree. I haven't found something I've enjoyed working with in JavaScript.

The environment I work on usually has very clean MVC and the issue is always that the designers I work with don't know javascript but need control over the HTML so I'm always taking their raw HTML with almost no javascript and basically reworking the HTML & CSS to do the animations or w/e is necessary.

I've tried React but generally I just get very dirty .JS files with mixed HTML/CSS in them. It's honestly not as clean as people make it out to be unless you're working with UI/UX people who know JavaScript already.

Literally every time I have an HTML/CSS person mess with the code I have to fix the JavaScript afterwards.

Re:Crafting a high-performance TV user interface using React by eropple on Thursday January 12, 2017 @02:35PM (#13385346)
I think the implications of UI/UX people who don't know JavaScript is probably not great to begin with, yeah? I'm not sure that React isn't just exposing a flawed assumption that maybe we shouldn't have had in the first place.
Re:Crafting a high-performance TV user interface using React by frankmoodie on Thursday January 12, 2017 @09:42PM (#13388009)
"but generally I just get very dirty .JS files with mixed HTML/CSS in them"

Just put the css/sass on .css/.sass files and import the classes from the react jsx file. No need to mix css and html.