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.
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.