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 ef6c599 commit 299cc97Copy full SHA for 299cc97
src/jsMain/kotlin/App.kt
@@ -5,7 +5,7 @@ import kotlinx.coroutines.*
5
6
private val scope = MainScope()
7
8
-val App = fc<Props> {
+val app = fc<Props> {
9
val (shoppingList, setShoppingList) = useState(emptyList<ShoppingListItem>())
10
11
useEffectOnce {
src/jsMain/kotlin/Main.kt
@@ -1,9 +1,8 @@
1
-import react.child
2
import react.dom.render
3
import kotlinx.browser.document
4
fun main() {
render(document.getElementById("root")) {
- child(App)
+ child(app)
}
0 commit comments