Initial commit from Create Next App

This commit is contained in:
2021-10-12 21:17:12 +02:00
commit adc12fcae3
17 changed files with 2364 additions and 0 deletions

18
components/ListItem.tsx Normal file
View File

@@ -0,0 +1,18 @@
import React from 'react'
import Link from 'next/link'
import { User } from '../interfaces'
type Props = {
data: User
}
const ListItem = ({ data }: Props) => (
<Link href="/users/[id]" as={`/users/${data.id}`}>
<a>
{data.id}: {data.name}
</a>
</Link>
)
export default ListItem