Remove Primer’s Drop-In Checkout UI from the DOM.

This method removes completely the checkout UI from the DOM. It also marks the UniversalCheckout instance as torn down, which will raise an error if any operation that requires the UI is attempted.

JSX
const checkout = await Primer.showUniversalCheckout(clientToken, options);

checkout.teardown();