Christian H.
03/29/2023, 5:02 PMprops.detailComponent(id)
That's the part inside the Props interface:
var detailComponent: (id: Int?) -> Unit
And thats the prop definition inside the calling FC<>:
detailComponent = { id ->
div {
+"asfsagsd $id"
}
}
Simplified, since the more complex real thing didn't work
Problem is, the div won't render - I suppose I can't just inject elements this way. How do I do it the right way?
Thanks in advance!turansky
03/29/2023, 5:13 PMChristian H.
04/03/2023, 12:26 PMturansky
04/03/2023, 1:11 PMrenderOption
as example from Autocomplete