Browse Source

Simplify Compose in React example (#823)

There is no need to use the attrs function.
pull/857/head
Eric Pabst 3 years ago committed by GitHub
parent
commit
386ca357d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      examples/web-with-react/src/jsMain/kotlin/ComposeInReactApp.kt

6
examples/web-with-react/src/jsMain/kotlin/ComposeInReactApp.kt

@ -69,11 +69,7 @@ private val composeListComponentWrapper = functionalComponent<ListProps> { 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<RProps> {

Loading…
Cancel
Save