Skip to content

Commit 299cc97

Browse files
Change capitalization of "App"
1 parent ef6c599 commit 299cc97

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/jsMain/kotlin/App.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import kotlinx.coroutines.*
55

66
private val scope = MainScope()
77

8-
val App = fc<Props> {
8+
val app = fc<Props> {
99
val (shoppingList, setShoppingList) = useState(emptyList<ShoppingListItem>())
1010

1111
useEffectOnce {

src/jsMain/kotlin/Main.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import react.child
21
import react.dom.render
32
import kotlinx.browser.document
43

54
fun main() {
65
render(document.getElementById("root")) {
7-
child(App)
6+
child(app)
87
}
98
}

0 commit comments

Comments
 (0)