In Inferno, when trying to define children shape in compile time, there are two ways for defining the children as text:
function Hello() {
let h = "Hello";
return (
<p $HasTextChildren>
{h}
</p>
);
}
import { createTextVNode } from "inferno";
function Hello() {
let h = "Hello";
return (
<p $HasVNodeChildren>
{createTextVNode(h)}
</p>
);
}
What is the difference between these two?