aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/react/test/fixtures/react-component/src/pages/index.astro
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2023-08-17 08:54:28 -0400
committerGravatar Matthew Phillips <matthew@skypack.dev> 2023-08-17 08:54:28 -0400
commitcbb77af978bd0dcee08ad2dcadadb032abc44dc1 (patch)
tree94b7f35fd4214bbcdb1d36393583c5332bc5ff24 /packages/integrations/react/test/fixtures/react-component/src/pages/index.astro
parent2484dc4080e5cd84b9a53648a1de426d7c907be2 (diff)
parentd6b4943764989c0e89df2d6875cd19691566dfb3 (diff)
downloadastro-cbb77af978bd0dcee08ad2dcadadb032abc44dc1.tar.gz
astro-cbb77af978bd0dcee08ad2dcadadb032abc44dc1.tar.zst
astro-cbb77af978bd0dcee08ad2dcadadb032abc44dc1.zip
Merge branch 'main' into next
Diffstat (limited to 'packages/integrations/react/test/fixtures/react-component/src/pages/index.astro')
-rw-r--r--packages/integrations/react/test/fixtures/react-component/src/pages/index.astro41
1 files changed, 41 insertions, 0 deletions
diff --git a/packages/integrations/react/test/fixtures/react-component/src/pages/index.astro b/packages/integrations/react/test/fixtures/react-component/src/pages/index.astro
new file mode 100644
index 000000000..3afd8233f
--- /dev/null
+++ b/packages/integrations/react/test/fixtures/react-component/src/pages/index.astro
@@ -0,0 +1,41 @@
+---
+import Hello from '../components/Hello.jsx';
+import Later from '../components/Goodbye.vue';
+import ArrowFunction from '../components/ArrowFunction.jsx';
+import PropsSpread from '../components/PropsSpread.jsx';
+import {Research2} from '../components/Research.jsx';
+import Pure from '../components/Pure.jsx';
+import TypeScriptComponent from '../components/TypeScriptComponent';
+import CloneElement from '../components/CloneElement';
+import WithChildren from '../components/WithChildren';
+import WithId from '../components/WithId';
+
+const someProps = {
+ text: 'Hello world!',
+};
+---
+
+<html>
+ <head>
+ <!-- Head Stuff -->
+ </head>
+ <body>
+ <Hello name="static" />
+ <Hello name="load" client:load />
+ <!-- Test island deduplication, i.e. same UID as the component above. -->
+ <Hello name="load" client:load />
+ <!-- Test island deduplication account for non-render affecting props. -->
+ <Hello name="load" unused="" client:load />
+ <Later name="baby" />
+ <ArrowFunction />
+ <PropsSpread {...someProps}/>
+ <Research2 client:idle />
+ <TypeScriptComponent client:load />
+ <Pure />
+ <CloneElement />
+ <WithChildren client:load>test</WithChildren>
+ <WithChildren client:load children="test" />
+ <WithId client:idle />
+ <WithId client:idle />
+ </body>
+</html>