summaryrefslogtreecommitdiff
path: root/examples/framework-multiple/src/pages/index.astro
blob: 3864b64300f0a0b863d924b5e3f80774567d2693 (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
42
43
44
45
46
47
48
49
50
---
// Component Imports
import { A, B as Renamed } from '../components';
import * as react from '../components/ReactCounter.jsx';
import { PreactCounter } from '../components/PreactCounter.tsx';
import PreactSFC from '../components/PreactSFC.tsx';
import SolidCounter from '../components/SolidCounter.tsx';
import VueCounter from '../components/VueCounter.vue';
import SvelteCounter from '../components/SvelteCounter.svelte';

// Full Astro Component Syntax:
// https://docs.astro.build/core-concepts/astro-components/
---

<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width" />
		<link rel="icon" type="image/x-icon" href="/favicon.ico" />
		<link rel="stylesheet" type="text/css" href={Astro.resolve('../styles/global.css')} />
	</head>
	<body>
		<main>
			<react.Counter client:visible>
				<h1>Hello React!</h1>
				<p>What's up?</p>
			</react.Counter>

			<PreactCounter client:visible>
				<h1>Hello Preact!</h1>
			</PreactCounter>

			<SolidCounter client:visible>
				<h1>Hello Solid!</h1>
			</SolidCounter>

			<VueCounter client:visible>
				<h1>Hello Vue!</h1>
			</VueCounter>

			<SvelteCounter client:visible>
				<h1>Hello Svelte!</h1>
			</SvelteCounter>

			<A />

			<Renamed />
		</main>
	</body>
</html>