Right now you have to return a valid DOM element (or a Component, but eventually it will have to return a DOM element).
This can be solved (at least in theory) by utilizing TextNodes. Since it is a Node, we can use insertBefore method to achieve a similar behavior to replace() from ElementNodes.
In case of undefined or null, we can simply create an empty Text Node. This should not cause any interference as far as I am aware.
Right now you have to return a valid DOM element (or a Component, but eventually it will have to return a DOM element).
This can be solved (at least in theory) by utilizing TextNodes. Since it is a Node, we can use insertBefore method to achieve a similar behavior to
replace()
from ElementNodes.In case of
undefined
ornull
, we can simply create an empty Text Node. This should not cause any interference as far as I am aware.