From 386ca357d0d2c05164822951bd4200b2e5ef7cd5 Mon Sep 17 00:00:00 2001 From: Eric Pabst Date: Wed, 7 Jul 2021 10:02:32 -0600 Subject: [PATCH] Simplify Compose in React example (#823) There is no need to use the attrs function. --- .../web-with-react/src/jsMain/kotlin/ComposeInReactApp.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/web-with-react/src/jsMain/kotlin/ComposeInReactApp.kt b/examples/web-with-react/src/jsMain/kotlin/ComposeInReactApp.kt index 7cd8f8e8c4..d3e041c6df 100644 --- a/examples/web-with-react/src/jsMain/kotlin/ComposeInReactApp.kt +++ b/examples/web-with-react/src/jsMain/kotlin/ComposeInReactApp.kt @@ -69,11 +69,7 @@ private val composeListComponentWrapper = functionalComponent { props } // This div will be a root for the Composition managed by Compose - div { - attrs { - ref { containerRef.current = it } - } - } + div { ref { containerRef.current = it } } } private val column = functionalComponent {