kotlin-fullstack-sample uses classes like `ReactD...
# react
n
kotlin-fullstack-sample uses classes like
ReactDOMComponent
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.
Copy code
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
Copy code
ReactDOM.render(document.getElementById("content")) {
        div {
            Application {}
        }
    }
by convenient function I mean a function like this for Ticker class
Copy code
fun RBuilder.ticker(startFrom: Int = 0) = child(Ticker::class) {
    attrs.startFrom = startFrom
}