I want to create a `Datagrid` inside `Create`, `Edit` page to display and manage `n-to-n` relationship. But I don't know how to pass `props` into `List` and `Datagrid` and what `props` should be passed.

The Resource to manage this Datagrid named `caregiver_student` and I put it in my custom `restClient` file.

Basic info
[![Basic info](https://i.stack.imgur.com/bXwQo.png)](https://i.stack.imgur.com/bXwQo.png)

Relationship info
[![Relationship info](https://i.stack.imgur.com/zz5tt.png)](https://i.stack.imgur.com/zz5tt.png)

Here is my code:

```
<Edit title={<CaregiverTitle />} {...props}>
    <TabbedForm>
        <FormTab label="Personal Info">
            <DisabledInput source="id" />
            <TextInput source="name" />
            <TextInput source="email" />
            <TextInput source="phone" />
            <RadioButtonGroupInput source="account_type" choices={[
                { id: 10, name: 'Caregiver' },
                { id: 20, name: 'Guardian' },
            ]} optionText="name" optionValue="id" />
            <BooleanInput source="status" label="Active"/>
        </FormTab>
        <FormTab label="Relationship">
            <List actions={<RelationActions/>} location={false} title={" "}>
                <Datagrid>
                    <TextField source="id" />
                    <TextField source="name" label="Student"/>
                    <TextField source="relationship" />
                    <EditButton />
                    <DeleteButton />
                </Datagrid>
            </List>
        </FormTab>
    </TabbedForm>
</Edit>

```

Thank you for your help!