io.github.shogowada.scalajs.reactjs
Factory for virtual DOMs
Virtual DOMs have type of Element, which are implicitly converted to ReactElement.
Import VirtualDOM._ and access factory methods for DOMs with
<
and attributes with
^
.
import io.github.shogowada.scalajs.reactjs.VirtualDOM._ object Foo { def render(): ReactElement = <.div(^.id := "main")( <.div()("first child"), <.div()("second child") ) }
^ }}}
< }}}
Factory for virtual DOMs
Virtual DOMs have type of Element, which are implicitly converted to ReactElement.
Import VirtualDOM._ and access factory methods for DOMs with
and attributes with
.
^ }}}
< }}}