com.raquo.laminar.nodes
package com.raquo.laminar.nodes
Type members
Classlikes
class ReactiveHtmlElement[+Ref <: Element](val tag: HtmlTag[Ref], val ref: Ref) extends ReactiveElement[Ref]
- Companion:
- object
class ReactiveSvgElement[+Ref <: Element](val tag: SvgTag[Ref], val ref: Ref) extends ReactiveElement[Ref]
- Companion:
- object
RootNode will mount itself (and the child) if the container node is attached to the DOM at RootNode initialization time.
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.