ASPNetCore/Next/components/Errors.tsx

6 lines
105 B
TypeScript

export default function Errors({ errors }) {
return errors.map(x => (
<li>{x}</li>
));
}