How to create a ReferenceInput wrapped component?
I'm trying to create a wrap component that includes admin-on-rest ReferenceInput What am I missing? I have seen the answer Error on Creating custom ReferenceInput with separate component but I do not know how to apply it in this case //Works!! export const commentsCreate = (props) => ( <Create title = "Create" {...props} > <SimpleForm> <ReferenceInput label="Posts" source="field" reference="posts" allowEmpty {...props}> <AutocompleteInput optionText="name" {...props}/> </ReferenceInput> </SimpleForm> </Create> ); /* Fail: ReferenceInput.js:303 Uncaught (in promise) TypeError: Cannot read