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