This is the base trait for Scala DOM Builder nodes,
which are objects representing a tree of real JS DOM nodes.
N
if you're extending Scala DOM Builder (i.e. you're not using the com.raquo.dombuilder.jsdom.simple package,
this type param can be the base trait of your nodes. This will ensure that your nodes are instantiated with
the same shared logic that you define in N, and that your nodes can only interact with each other, not
other Scala DOM Builder nodes that might not have that shared logic.
WARNING: This is a new library. The N mechanism is not battle tested for either usefulness or reliability,
so it might very well change. I implemented N primarily looking at the needs of my Laminar project.
This is the base trait for Scala DOM Builder nodes, which are objects representing a tree of real JS DOM nodes.
if you're extending Scala DOM Builder (i.e. you're not using the com.raquo.dombuilder.jsdom.simple package, this type param can be the base trait of your nodes. This will ensure that your nodes are instantiated with the same shared logic that you define in N, and that your nodes can only interact with each other, not other Scala DOM Builder nodes that might not have that shared logic. WARNING: This is a new library. The N mechanism is not battle tested for either usefulness or reliability, so it might very well change. I implemented N primarily looking at the needs of my Laminar project.