aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/fixtures/jsx-comment.tsx19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/fixtures/jsx-comment.tsx b/src/test/fixtures/jsx-comment.tsx
new file mode 100644
index 000000000..29f78331d
--- /dev/null
+++ b/src/test/fixtures/jsx-comment.tsx
@@ -0,0 +1,19 @@
+const foo = (
+ <HelloComponent
+ // this is valid JSX!
+ wow="hello"
+ />
+);
+
+const bar = (
+ <HelloComponent
+ /* this
+ is
+ also
+ valid
+ JSX!
+ */
+ wow="hello"
+ /* extremely valid JSX! */
+ />
+);