RootNode
RootNode will mount itself (and the child) if the container node is attached to the DOM at RootNode initialization time.
Note: RootNode does not receive any outside notifications about the container being attached or detached from the DOM.
If you are trying to create a Laminar RootNode inside a React.js component, make sure to call:
- mount() when componentDidMount is due, and
- unmount() when componentWillUnmount is due.
Other libraries' integration follows the same principle.