7 lines
1.6 KiB
Text
7 lines
1.6 KiB
Text
|
<span class="hljs-keyword">var</span> jsx = <span class="xml"><span class="hljs-tag"><<span class="hljs-name">node</span>/></span></span>;
|
||
|
<span class="hljs-keyword">var</span> jsx = <span class="xml"><span class="hljs-tag"><<span class="hljs-name">node</span>></span><span class="hljs-tag"><<span class="hljs-name">child</span>/></span><span class="hljs-tag"></<span class="hljs-name">node</span>></span></span>;
|
||
|
<span class="hljs-keyword">var</span> jsx = <span class="xml"><span class="hljs-tag"><<span class="hljs-name">node</span>></span>...<span class="hljs-tag"><<span class="hljs-name">child</span>></span>...<span class="hljs-tag"></<span class="hljs-name">child</span>></span><span class="hljs-tag"></<span class="hljs-name">node</span>></span></span>;
|
||
|
<span class="hljs-keyword">var</span> jsx = <span class="xml"><span class="hljs-tag"><<span class="hljs-name">div</span>></span><span class="hljs-tag"><<span class="hljs-name">span</span>></span><span class="hljs-tag"><<span class="hljs-name">br</span> /></span><span class="hljs-tag"></<span class="hljs-name">span</span>></span><span class="hljs-tag"></<span class="hljs-name">div</span>></span></span>;
|
||
|
<span class="hljs-keyword">var</span> x = <span class="hljs-number">5</span>;
|
||
|
<span class="hljs-keyword">return</span> (<span class="xml"><span class="hljs-tag"><<span class="hljs-name">node</span> <span class="hljs-attr">attr</span>=<span class="hljs-string">"value"</span>></span><span class="hljs-tag"></<span class="hljs-name">node</span>></span></span>);
|