diff options
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.astro | 41 |
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> |