Joe
Member since Oct 1, 2015
- Profile: /members/12847-joe.htm
- Comments: 5
Recent Blog Comments By Joe
-
After 3 Months Of JavaScript Linting, It's Pretty Much All Pain And No Gain
Posted on Aug 1, 2017 at 9:43 AM
Have you tried Prettier? At least then you can format on check-in and not worry about other people's style choices.... read more »
-
Decoupling Component And Layout Responsibilities In ReactJS
Posted on Oct 1, 2015 at 10:11 AM
Right, Vjeux from facebook covers inlines styles a lot - like this deck: https://speakerdeck.com/vjeux/react-css-in-js I think it was him that said, CSS is fine apart from the cascading and the sheets. :-)... read more »
-
Decoupling Component And Layout Responsibilities In ReactJS
Posted on Oct 1, 2015 at 9:31 AM
By 'behaving like regular HTML elements' - I just mean that you can set the style of a regular HTML element to modify the layout behavior. You can change the display style property, or use flex and you expect the element to adjust accordingly. These are essentially ambient properties used by the la... read more »
-
Decoupling Component And Layout Responsibilities In ReactJS
Posted on Oct 1, 2015 at 9:04 AM
There are lots of issues with CSS though. Like class scope, ordering and performance. From an architectural perspective, I wouldn't want to rely on the implementation of a widget and assume that layout behavior will remain consistent. I would much prefer the widget to behave like any other HTML elem... read more »
-
Decoupling Component And Layout Responsibilities In ReactJS
Posted on Oct 1, 2015 at 8:24 AM
Interesting points. But I wouldn't say that the Angular approach is better. The contents of the Widget should be concealed, using HTML kind of defeats the purpose of that abstraction. The better solution (like any HTML element) is to supply the top level style. If you use something like Radium you ... read more »