You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @typedef {{[x: string]: Value | Child}} JSXProps
10
10
*/
11
11
12
12
import{x}from'./index.js'
13
13
14
-
// Export `JSX` as a global for TypeScript.
15
-
export*from'./jsx-automatic.js'
16
-
17
14
/**
18
15
* Create XML trees in xast through JSX.
19
16
*
20
-
* @param name Qualified name. Case sensitive and can contain a namespace prefix (such as `rdf:RDF`). Pass `null | undefined` to build a root.
21
-
* @param props Map of attributes. Nullish (null or undefined) or NaN values are ignored, other values (strings, booleans) are cast to strings. `children` can contain one child or a list of children. When strings are encountered, they are mapped to text nodes.
17
+
* @param name
18
+
* Qualified name.
19
+
*
20
+
* Case sensitive and can contain a namespace prefix (such as `rdf:RDF`).
21
+
* When string, an `Element` is built.
22
+
* When nullish, a `Root` is built instead.
23
+
* @param props
24
+
* Map of attributes.
25
+
*
26
+
* Nullish (`null` or `undefined`) or `NaN` values are ignored, other values
27
+
* are turned to strings.
28
+
*
29
+
* Cannot be given if building a `Root`.
30
+
* Cannot be omitted when building an `Element` if the first child is a
0 commit comments