##// END OF EJS Templates
Added tag v1.2.1 for changeset 16678c6055f2
Added tag v1.2.1 for changeset 16678c6055f2

File last commit:

r65:8ac132c83639 default
r76:f8ff12e26c2d default
Show More
DjxFragment.ts
6 lines | 343 B | video/mp2t | TypeScriptLexer
/ djx / src / main / ts / tsx / DjxFragment.ts
/** Special functional component used to create a document fragment */
export function DjxFragment({children}: {children?: Node | Node[]}){
const fragment = document.createDocumentFragment();
if (children)
(children instanceof Array ? children : [children]).forEach(child => fragment.appendChild(child));
return fragment;
}