Files
Practice-1/src/Components/CommentEdit.tsx

14 lines
404 B
TypeScript
Raw Normal View History

2025-01-10 11:42:56 +01:00
import { Edit, ReferenceInput, SimpleForm, TextInput } from 'react-admin';
export const CommentEdit = () => (
<Edit>
<SimpleForm>
<ReferenceInput source="postId" reference="posts" />
<TextInput source="id" />
<TextInput source="name" />
<TextInput source="email" />
<TextInput source="body" />
</SimpleForm>
</Edit>
);