element.destroy()
Unmounts the element and drops its handlers. Create a new element to show it again.
destroy(): void;Example
Section titled “Example”// Single-page apps: when the product view goes awayguide.destroy();// React components destroy their element on unmount.Was this page helpful?
Thank you. We read every answer.