tink_hxx
tink_hxx copied to clipboard
If children are a function, it should be roughly treated as complex attribute function
//Given:
function list<T>(attr:{items:Array<T>, children:T->Children}) '
<ul>
<for {item in attr.items}>
<li key={item}>{...attr.children(item)}</li>
</for>
</ul>
';
//should compile:
hxx('
<list items={[ { name: "Alice" }, { name: "Bob" } ]}>
<h3>{name}</h3>
</list>
')
Would that have any impact on the code haxe-react is using from tink_hxx?
Nope, this is purely a generator thing, that haxe-react is not using ;)