You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Application-Web/front/views/DisplayResults.tsx

14 lines
379 B

interface DisplayResultsProps {
results: readonly { name: string; description: string }[]
}
export default function DisplayResults({ results }: DisplayResultsProps) {
const list = results.map(({ name, description }) => (
<div>
<p>username: {name}</p>
<p>description: {description}</p>
</div>
))
return <div>{list}</div>
}