Nail Gilaziev
06/23/2018, 9:11 AMReactDOMComponent
from package react.dom
that now doesn’t exist in this package. These sources are not relevant as I understand because I can’t use this code in
newly created app from create-react-kotlin-app tool.
class Application : ReactDOMComponent<ReactComponentNoProps, ApplicationPageState>() {
companion object : ReactComponentSpec<Application, ReactComponentNoProps, ApplicationPageState>
}
what is the actual way for using this code to achive the same result - calling Application{}
in render function without creating convenient function
ReactDOM.render(document.getElementById("content")) {
div {
Application {}
}
}
Nail Gilaziev
06/23/2018, 11:08 AMfun RBuilder.ticker(startFrom: Int = 0) = child(Ticker::class) {
attrs.startFrom = startFrom
}