| 1 |
import styles from './Home.module.css'; |
| 2 |
import SimpleGreeter from './simple-greeter'; |
| 3 |
import SimpleGreeterReact from '../src/simple-greeter-react'; |
| 4 |
|
| 5 |
export default function Home() { |
| 6 |
return ( |
| 7 |
<div className={styles.container}> |
| 8 |
<main className={styles.main}> |
| 9 |
<h1 className={styles.title}> |
| 10 |
Welcome to <a href="https://lit.dev">Lit</a> and{' '} |
| 11 |
<a href="https://nextjs.org">Next.js!</a> |
| 12 |
</h1> |
| 13 |
<p className={styles.description}> |
| 14 |
The component below is a web component #builtWithLit |
| 15 |
</p> |
| 16 |
<SimpleGreeter name="Friend" /> |
| 17 |
<p className={styles.description}> |
| 18 |
The component below is a component wrapped with{' '} |
| 19 |
<a href="https://github.com/lit/lit/tree/main/packages/labs/react"> |
| 20 |
<code>@lit-labs/react</code> |
| 21 |
</a> |
| 22 |
</p> |
| 23 |
<SimpleGreeterReact name="React" /> |
| 24 |
</main> |
| 25 |
</div> |
| 26 |
); |
| 27 |
} |