adiguno_hello-nemesis/ReactView.tsx

19 lines
329 B
TypeScript
Raw Normal View History

2025-01-31 13:56:48 +00:00
import * as React from "react";
2025-01-31 15:03:54 +00:00
type ExampleReactViewProps = {
contents: string[]
}
export const ExampleReactView = ({ contents }: ExampleReactViewProps) => {
2025-01-31 13:56:48 +00:00
return (
2025-01-31 15:03:54 +00:00
2025-01-31 13:56:48 +00:00
<div>
2025-01-31 15:03:54 +00:00
<h1>Hello My Nemesis</h1>
{contents.map((content, index) => {
return (<><div key={index}>{content}</div><br /></>)
})}
2025-01-31 13:56:48 +00:00
</div>
2025-01-31 15:03:54 +00:00
)
2025-01-31 13:56:48 +00:00
};