We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fecc46c commit e05f1e9Copy full SHA for e05f1e9
jsx/jsx.test.tsx
@@ -1,4 +1,5 @@
1
/** @jsx $mol_jsx */
2
+/** @jsxFrag $mol_jsx_frag */
3
namespace $ {
4
5
$mol_test({
@@ -61,6 +62,32 @@ namespace $ {
61
62
63
} ,
64
65
+ 'Make fragment'() {
66
+
67
+ const dom =
68
+ <>
69
+ <br />
70
+ <hr />
71
+ </>
72
73
+ $mol_assert_equal( $mol_dom_serialize( dom ), '<br xmlns="http://www.w3.org/1999/xhtml" /><hr xmlns="http://www.w3.org/1999/xhtml" />' )
74
75
+ } ,
76
77
+ 'Spread fragment'() {
78
79
80
+ <div>
81
82
83
84
85
+ </div>
86
87
+ $mol_assert_equal( dom.outerHTML, '<div><br><hr></div>' )
88
89
90
91
'Function as component'() {
92
93
const Button = (
0 commit comments