embed children
This commit is contained in:
11
src.new/element.tsx
Normal file
11
src.new/element.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { ReactNode } from "react"
|
||||
import React from "react"
|
||||
import type { Node } from "./node.js"
|
||||
|
||||
export function ReacordElement<Props>(props: {
|
||||
props: Props
|
||||
createNode: () => Node<Props>
|
||||
children?: ReactNode
|
||||
}) {
|
||||
return React.createElement("reacord-element", props)
|
||||
}
|
||||
Reference in New Issue
Block a user