allow JSX for text in more places

This commit is contained in:
itsMapleLeaf
2022-07-22 21:28:14 -05:00
committed by Darius
parent 9afe6fe0fa
commit bc91080eca
14 changed files with 236 additions and 52 deletions

View File

@@ -13,4 +13,8 @@ export abstract class Node<Props> {
handleComponentInteraction(interaction: ComponentInteraction): boolean {
return false
}
get text(): string {
return [...this.children].map((child) => child.text).join("")
}
}