fragment.js 483 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <></>;
  2. <>
  3. text
  4. </>;
  5. <>
  6. <Component />
  7. <Component />
  8. </>;
  9. <>
  10. text
  11. <h2>heading</h2>
  12. text
  13. <h2>heading</h2>
  14. text
  15. </>;
  16. <div>
  17. <>
  18. <>
  19. <span>Hello</span>
  20. <span>world</span>
  21. </>
  22. <>
  23. <span>Goodbye</span>
  24. <span>world</span>
  25. </>
  26. </>
  27. </div>;
  28. foo = (
  29. // comment
  30. <></>
  31. );
  32. </* open fragment */>
  33. <Component />
  34. <Component />
  35. </ /* close fragment */>;
  36. < // open fragment
  37. >
  38. <Component />
  39. <Component />
  40. </ // close fragment
  41. >;