@dependable/tsx
Version:
Construct @dependable/view vdom using TypeScript TSX
19 lines (18 loc) • 427 B
JavaScript
export class Component {
constructor(props, context) {
this.props = props;
this.context = context;
}
props;
context;
}
export class Portal extends Component {
render({ children, ...props }) {
return { type: "Portal", props, children };
}
}
export class Context extends Component {
render({ children, ...props }) {
return { type: "Context", props, children };
}
}