News for hackers. Stuff that matters.
Re:State of React and CSS by civilian on Monday April 04, 2016 @05:06PM (#11425668)
The hover problem does kind of suck--- as far as I know, Radium (and others https://github.com/FormidableLabs/radium/tree/master/docs/co...) tend to solve it by wrapping components with a component that tracks hover state. And moving the hover-state tracking into React isn't the _worst_ thing--- JS is meant to be in command of the interactive portions of websites, so it does kind of make sense. If your :hover is ever going to have to do more, like show or hide content, it'll have to be in JS anyway.

The "JS Fatigue" haters will be cobolt-maintence programmers of the 2020's, I don't pay much attention to them. Javascript has a lot of churn because we have a difficult platform & language to improve upon.

Re:State of React and CSS by talmand on Monday April 04, 2016 @05:46PM (#11425973)
To nitpick just a little, not all content shown through a hover is controlled via Javascript.

Although, I discourage the practice of hiding/showing content based on hover states.

Re:State of React and CSS by pacomerh on Monday April 04, 2016 @05:12PM (#11425707)
whats cobolt?, do you mean COBOL ?