Select Git revision
Component.js
Forked from an inaccessible project.
-
Romain Saint-maxent authoredRomain Saint-maxent authored
Component.js 274 B
export default class Component{
tagName;
children;
constructor(tagName,children){
this.tagName=tagName;
this.children=children;
}
render(){
if(this.children!=null) return `<${this.tagName}> ${this.children} </${this.tagName}>`
return `<${this.tagName} />`;
}
}