blob: 1c7b45ce89831d384e49486140699d78c70943c5 (
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
|
---
import Lorem from '../components/Lorem.astro';
import { CalcAdd } from '../components/calc-add.js';
import { MyCounter } from '../components/my-counter.js';
// Full Astro Component Syntax:
// https://docs.astro.build/core-concepts/astro-components/
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<title>Demo</title>
</head>
<body>
<h1>Test app</h1>
<MyCounter client:load />
<Lorem />
{
/**
* Our VS Code extension does not currently properly typecheck attributes on Lit components
* As such, the following code will result in a TypeScript error inside the editor, nonetheless, it works in Astro!
*/
}
{/** @ts-expect-error */}
<CalcAdd num={0} />
</body>
</html>
|