DevExtreme React - Destroy a Widget
To dispose of a DevExtreme widget, free up the allocated resources by calling the dispose() method. Then, remove the widget's associated DOM node:
JavaScript
$("#menuContainer").dxMenu("dispose"); $("#menuContainer").remove();
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.