Miao-Yunzai/hello.tsx

12 lines
257 B
TypeScript
Raw Normal View History

2024-06-11 22:10:46 +08:00
import React from 'react'
export type DataType = {
name: string
}
export type PropsType = {
data: DataType
}
export default function App({ data }: PropsType) {
return (
<div className="text-red-500 p-2 text-xl m-80">Hello, {data.name}!</div>
)
}