I create SimpleForm with ImageInput.
I followed the instructions in the document: https://marmelab.com/admin-on-rest/Inputs.html#imageinput This is my code:
export const PostCreate = (props) => (
<Create actions={<PostCreateEditActions/>} {...props}>
<SimpleForm toolbar={<PostCreateEditToolbar/>} defaultValue={postCreateDefaultValue}>
<ImageInput source="pictures" label="画像" accept="image/*" >
<ImageField source="src"/>
</ImageInput>
</SimpleForm>
</Create>
);
But when the console logs error:
bundle.js:4903 Warning: Stateless function components cannot be given refs. Attempts to access this ref will fail.
Check the render method of TextField.
Could you explain the cause of the error?