So in class-based components, in the instantiation...
# react
c
So in class-based components, in the instantiation function usually at the bottom, I’ve occasionally seen a handler referenced but its not at all clear exactly what that is, where it comes from, or what its doing. For me at least. Something like this:
Copy code
fun RBuilder.test(handler: RHandler<RProps>) = child(Test::class, handler)
This component was made as a way to figure out how to have a component that doesn’t render anything but its children. I’ve looked through the source code and I can see references to handler in the RBuilder code but it still seems pretty opaque to me. What exactly is that, and how would I know when I needed to use it?