unmountComponentAtNode function

bool unmountComponentAtNode(
  1. Element mountNode
)

Removes a React Component from the DOM that was mounted via render and cleans up its event handlers and state.

  • Returns false if a Component was not mounted in the mountNode.
  • Returns true if a Component was mounted in the mountNode.

Proxies react_dom.unmountComponentAtNode.

Implementation

bool unmountComponentAtNode(Element mountNode) {
  return react_dom.unmountComponentAtNode(mountNode) as bool;
}