refactor: rendering button
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
export class TextNode {
|
||||
constructor(public text: string) {}
|
||||
import { Node } from "./node.js"
|
||||
|
||||
export class TextNode extends Node {
|
||||
readonly name = "text"
|
||||
constructor(public text: string) {
|
||||
super()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user