aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/react/test/fixtures/react-component/src/pages/index.astro
blob: b3b95c4b3b60e5599d403fd504826b04fa7709ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
import ArrowFunction from '../components/ArrowFunction.jsx';
import CloneElement from '../components/CloneElement';
import Later from '../components/Goodbye.vue';
import Hello from '../components/Hello.jsx';
import PropsSpread from '../components/PropsSpread.jsx';
import Pure from '../components/Pure.jsx';
import {Research2} from '../components/Research.jsx';
import TypeScriptComponent from '../components/TypeScriptComponent';
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>