Rafał Kuźmiński
02/19/2023, 4:33 PMval Example = FC<FindRouteProps> { props ->
child(DragDropContext::class) { // compilation error
}
}
but I can use it on "fc" components:
val Example = fc<FindRouteProps> { props ->
child(DragDropContext::class) { // works
}
}
Is there any "hack" so I would be able to use it in FC components? What is the difference between FC and fc? Why some wrappers like react-mui use FC and other fc?turansky
02/19/2023, 6:28 PM