react-typescript-test/app/page.tsx

15 lines
268 B
TypeScript
Raw Normal View History

2024-09-03 19:21:04 +02:00
function MyButton({ title }: { title: string }) {
return (
<button>{title}</button>
);
}
2024-09-03 19:08:37 +02:00
2024-09-03 19:21:04 +02:00
export default function MyApp() {
return (
<div>
<h1>Welcome to my app</h1>
<MyButton title="I'm a button" />
2024-09-03 19:08:37 +02:00
</div>
2024-09-03 19:21:04 +02:00
);
2024-09-03 19:08:37 +02:00
}