Transitioning from React to hyperHTML for the sake of performance is my current focus. Utilizing third-party libraries like the dock panel management tools from PhosphorJS has been essential in this process. When implementing the 'DockPanel' class, I encounter the need to connect it to the actual DOM tree.
In React
, accomplishing this task can be done through the use of the componentDidMount
function (which is called immediately after the virtual nodes are attached to the DOM tree).
My query is whether there exists a method to detect when a component is "mounted" and "unmounted"? While I am aware that HyperElement
incorporates the dis/connectedCallback
function, it does not seem to work within hyper.Components
.
Any insights on this matter would be greatly appreciated!