Nikola Milovic
val MainScreen = fc<MainProps> { props -> ... sidebar { // has props with children when (child) { // this causes crash is Main.Child.Chat -> p{attrs.text("heloooo test")} else -> p{attrs.text("heloooo error")} } } } external interface SidebarProps : PropsWithChildren { } val sidebar = fc<SidebarProps> { props -> props.children?.forEach { child(it) } }
turansky
props.children()
+props.children
Cheick Kante
A modern programming language that makes developers happier.