summaryrefslogtreecommitdiff
path: root/cli/tests/jsx_import_from_ts.App.jsx
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-06-15 17:53:05 +0200
committerGitHub <noreply@github.com>2020-06-15 17:53:05 +0200
commitb1893e65f20cf92585f59415eb23e709e32149b6 (patch)
tree857cc351c344b085b1ae430fb11b099cf4acd2e4 /cli/tests/jsx_import_from_ts.App.jsx
parent0ffc99a61ddfa958a436beef0d003ecead630d0f (diff)
fix(compiler): JSX compilation and provide better error message (#6300)
Diffstat (limited to 'cli/tests/jsx_import_from_ts.App.jsx')
-rw-r--r--cli/tests/jsx_import_from_ts.App.jsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/jsx_import_from_ts.App.jsx b/cli/tests/jsx_import_from_ts.App.jsx
new file mode 100644
index 000000000..6ea58436b
--- /dev/null
+++ b/cli/tests/jsx_import_from_ts.App.jsx
@@ -0,0 +1,11 @@
+const React = {
+ createElement() {}
+}
+
+export default function app() {
+ return (
+ <div>
+ <h2>asdf</h2>
+ </div>
+ );
+} \ No newline at end of file