News for hackers. Stuff that matters.
Re:Material-ui 0.8 removes all CSS and switches to full js i... by abarreir on Monday May 25, 2015 @04:41AM (#9599160)
This follows @vjeux talk about css in js: https://speakerdeck.com/vjeux/react-css-in-js

This is afaik the first public library following that path.

Re:Material-ui 0.8 removes all CSS and switches to full js i... by elktea on Monday May 25, 2015 @07:03AM (#9599497)
I tried to right click and inspect what was going on on their demo site and it treats left and right click as the same action. Oh dear.
Re:Material-ui 0.8 removes all CSS and switches to full js i... by fishfacemcgee on Monday May 25, 2015 @09:10AM (#9599892)
Looking through the slides referenced, this only seems possible/reasonable due to the styles being applied using React's DOM manipulation engine.

Perhaps that's assumable, but recommending this path seems pretty dangerous without significant caveats on its DOM-diffing requirement. Otherwise, just the raw amount of DOM injection is a severe performance risk.

Re:Material-ui 0.8 removes all CSS and switches to full js i... by spleeder on Monday May 25, 2015 @03:22PM (#9601310)
I have been using inline styles in React with great results too. I am glad to see more and more adoption. It leads to better portability and greater flexibility.
Re:Material-ui 0.8 removes all CSS and switches to full js i... by VOYD on Tuesday May 26, 2015 @06:44PM (#9608172)
why?