Skip to content
Snippets Groups Projects
Select Git revision
  • 18a434c4987ca6b07869376930e070ef89aea57d
  • master default protected
2 results

Component.js

Blame
  • Forked from an inaccessible project.
    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} />`;
    	}
    }