Miao-Yunzai/hello.tsx

12 lines
257 B
TypeScript

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>
)
}