summaryrefslogtreecommitdiff
path: root/test/fixtures/react-component/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixtures/react-component/src')
-rw-r--r--test/fixtures/react-component/src/components/Goodbye.vue11
-rw-r--r--test/fixtures/react-component/src/components/Hello.jsx5
-rw-r--r--test/fixtures/react-component/src/pages/index.astro14
3 files changed, 30 insertions, 0 deletions
diff --git a/test/fixtures/react-component/src/components/Goodbye.vue b/test/fixtures/react-component/src/components/Goodbye.vue
new file mode 100644
index 000000000..430dfdb71
--- /dev/null
+++ b/test/fixtures/react-component/src/components/Goodbye.vue
@@ -0,0 +1,11 @@
+<template>
+ <h2 id="vue-h2">Hasta la vista, {{ name }}</h2>
+</template>
+
+<script>
+export default {
+ props: {
+ name: String,
+ },
+};
+</script>
diff --git a/test/fixtures/react-component/src/components/Hello.jsx b/test/fixtures/react-component/src/components/Hello.jsx
new file mode 100644
index 000000000..4b6c416a9
--- /dev/null
+++ b/test/fixtures/react-component/src/components/Hello.jsx
@@ -0,0 +1,5 @@
+import React from 'react';
+
+export default function ({ name }) {
+ return <h2 id="react-h2">Hello {name}!</h2>;
+}
diff --git a/test/fixtures/react-component/src/pages/index.astro b/test/fixtures/react-component/src/pages/index.astro
new file mode 100644
index 000000000..74475f34e
--- /dev/null
+++ b/test/fixtures/react-component/src/pages/index.astro
@@ -0,0 +1,14 @@
+---
+import Hello from '../components/Hello.jsx';
+import Later from '../components/Goodbye.vue'; // use different specifier
+---
+
+<html>
+ <head>
+ <!-- Head Stuff -->
+ </head>
+ <body>
+ <Hello name="world" />
+ <Later name="baby" />
+ </body>
+</html>
@astrojs/prism@2.0.0-beta.0@astrojs/preact@2.0.0-beta.0@astrojs/partytown@1.0.3-beta.0@astrojs/node@5.0.0-beta.1@astrojs/netlify@2.0.0-beta.2@astrojs/mdx@1.0.0-beta.2@astrojs/markdown-remark@2.0.0-beta.2@astrojs/lit@1.0.2-beta.0@astrojs/image@1.0.0-beta.2@astrojs/deno@4.0.0-beta.2@astrojs/cloudflare@6.0.0-beta.1Gravatar Fred K. Bot 73-156/+547 2023-01-12 Add `.astro/` to `.gitignore` in example projects (#5841)Gravatar Chris Swithinbank 24-98/+46 2023-01-12chore: update changeset for `_astro` directory (#5843)Gravatar Nate Moore 1-2/+2 2023-01-12fix: pass flags to dev (#5840)Gravatar Sam Chen 3-1/+9 2023-01-12chore: update changelogs, add changeset for `_astro` directory (#5842)Gravatar Nate Moore 5-18/+10 2023-01-12[ci] formatGravatar natemoo-re 1-1/+1 2023-01-12fix(core): handle encoded characters when matching routes (#5836)Gravatar Nate Moore 8-2/+85 2023-01-12Handle compiler breaking change (#5803)Gravatar Bjorn Lu 12-328/+109 2023-01-12fix shiki css class replace logic in md and mdx integrations (#5837)Gravatar Giuseppe La Torre 3-3/+9 2023-01-11[ci] formatGravatar matthewp 2-2/+2 2023-01-11Simplify HMR handling (#5811)Gravatar Bjorn Lu 8-108/+46 2023-01-11[Content collections] Remove experimental flag (#5825)Gravatar Ben Holmes 27-103/+58 2023-01-11[Content collections] Improve content config handling (#5824)Gravatar Ben Holmes 5-58/+78 2023-01-11Run sync as part of `astro check` (#5823)Gravatar Chris Swithinbank 3-2/+13 2023-01-11[ci] update lockfile (#5815)Gravatar Fred K. Bot 1-257/+256 2023-01-11Fix order-of-execution bug when generating pages (#5822)Gravatar Nate Moore 2-2/+7 2023-01-11Fix `Code.astro` shiki css class replace logic (#5829)Gravatar Giuseppe La Torre 2-1/+6