DenReg/jsx-html/node/FragmentNode.ts

16 lines
341 B
TypeScript
Raw Normal View History

2020-10-14 00:56:11 +00:00
import { NODE_TYPE } from '../constants.ts';
import type { ChildNodeType } from '../types.ts';
import { Node } from './Node.ts';
export class FragmentNode extends Node {
type = NODE_TYPE.FRAGMENT;
constructor(children: ChildNodeType[]) {
super(children);
}
render() {
return this.renderChildren();
}
}