#Samsara
1 messages · Page 1 of 1 (latest)
You can do
<PaymentElement onChange={handlePaymentElementChange} />
and in that function like function handlePaymentElementChange(e){...} you can look at the value.type which is the one currently selected from the tabs in the Element
https://stripe.com/docs/js/element/events/on_change?type=paymentElement#element_on_change-handler-value