summaryrefslogtreecommitdiff
path: root/test/fixtures/astro-fallback/src/components/Client.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixtures/astro-fallback/src/components/Client.jsx')
-rw-r--r--test/fixtures/astro-fallback/src/components/Client.jsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fixtures/astro-fallback/src/components/Client.jsx b/test/fixtures/astro-fallback/src/components/Client.jsx
new file mode 100644
index 000000000..d79536e27
--- /dev/null
+++ b/test/fixtures/astro-fallback/src/components/Client.jsx
@@ -0,0 +1,7 @@
+import { h } from 'preact';
+
+export default function(props) {
+ return (
+ <div id="fallback">{import.meta.env.astro ? 'static' : 'dynamic'}</div>
+ );
+}; \ No newline at end of file