React DOM integration
root.unmount
Detach React ownership and clean up the mounted tree before a host removes its container.
Formal Syntax & Structure
react syntaxreact
root.unmount()Working Example
Example Snippetreact
root.unmount()Detach React ownership and clean up the mounted tree before a host removes its container.
root.unmount()root.unmount()