Everything about Slinky -- issues, ideas for features, where it's being used, and more
shadaj on main
Add "React / Binding.scala / ht… (compare)
role
and it prefixed it all with slinky.web.svg
and I thought, maybe there's an aria one for that
value apply is not a member of slinky.core.facade.ReactElement
@JSImport("resources/scss/card/style.scss", JSImport.Default)
@js.native
object Style extends js.Object
@react
object Card {
private val css = Style
case class Props(title: String, className: String, children: ReactElement)
val component = FunctionalComponent[Props] { props =>
Grid(className := s"{props.className} cardWrapper")(
Grid(className := "cardHeader")(
div(className := "cardHeaderLeft")(
h3(props.title)
)
), props.children
)
}
}
children
, it's special, and becomes a second parameter list
ProfileSearch.component(ProfileSearch.Props(props.search))
~/.ivy2/cache/me.shadaj/slinky-core-ijext_2.12/jars/slinky-core-ijext_2.12-0.6.5.jar
Uncaught java.lang.IllegalStateException: This component has already been built into a ReactElement, and cannot be reused
when I open and close my menu, which is weird, right?