allow JSX for text in more places
This commit is contained in:
@@ -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("")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user