We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 566b657 commit 00286deCopy full SHA for 00286de
src/jsMain/kotlin/App.kt
@@ -33,7 +33,7 @@ val App = functionalComponent<RProps> { _ ->
33
}
34
35
child(
36
- functionalComponent = InputComponent,
+ InputComponent,
37
props = jsObject {
38
onSubmit = { input ->
39
val cartItem = ShoppingListItem(input.replace("!", ""), input.count { it == '!' })
src/jsMain/kotlin/Main.kt
@@ -4,6 +4,6 @@ import kotlinx.browser.document
4
5
fun main() {
6
render(document.getElementById("root")) {
7
- child(functionalComponent = App)
+ child(App)
8
9
-}
+}
0 commit comments