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 299cc97 commit 4ecbd06Copy full SHA for 4ecbd06
src/jsMain/kotlin/App.kt
@@ -31,7 +31,7 @@ val app = fc<Props> {
31
}
32
33
34
- child(InputComponent) {
+ child(inputComponent) {
35
attrs.onSubmit = { input ->
36
val cartItem = ShoppingListItem(input.replace("!", ""), input.count { it == '!' })
37
scope.launch {
src/jsMain/kotlin/InputComponent.kt
@@ -9,7 +9,7 @@ external interface InputProps : Props {
9
var onSubmit: (String) -> Unit
10
11
12
-val InputComponent = fc<InputProps> { props ->
+val inputComponent = fc<InputProps> { props ->
13
val (text, setText) = useState("")
14
15
val submitHandler: (Event) -> Unit = {
0 commit comments