Juanoterocas
09/02/2019, 2:33 PMJuanoterocas
09/03/2019, 7:51 PMfun RBuilder.reactModal(isOpen: Boolean = false,onRequestClose: ((event: dynamic ) -> Unit)? =null, handler: RHandler<ReactModal.Props>) = child(ReactModal::class) {
attrs.isOpen=isOpen
onRequestClose?.let {
attrs.onRequestClose?.invoke(onRequestClose)
}
handler()
}
just call a handler which is the same in child() functionDarren Bell
09/09/2019, 9:14 AMDarren Bell
09/10/2019, 11:01 PMJuanoterocas
09/11/2019, 3:17 PM