These are chat archives for japgolly/scalacss

29th
Jun 2018
Todd O'Bryan
@toddobryan
Jun 29 2018 01:05
Does the bottom example on this page still work? https://japgolly.github.io/scalacss/book/ext/react.html
I'm trying to use ScalaCSS in ScalaJS-React and I'm getting a type error. The equivalent of MyComponent with a render_P method says I should be returning a VdomNode, but I'm returning a TagOf[html.Div].
Todd O'Bryan
@toddobryan
Jun 29 2018 01:11
I can fix that by putting a .render inside the render_P, but the component doesn't have a render method. Trying with renderIntoDOM.
Todd O'Bryan
@toddobryan
Jun 29 2018 03:30
OK. I think I figured out the problem. IntelliJ was being nice about imports, but missed the implicits. :-(
On the other hand, I think that example is out of date. Or at least I couldn't get it to to work, even with all the implicits in scope.