Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

215
Views
react-admin edit component is not working

I have been following the tutorial on react-admin and when I get to the part where you have to edit, a user for instance, the edit page shows up black with no errors in the devtool window. Please have a look at my code. Where am I going wrong?

in App.js

<Admin dataProvider={dataProvider} authProvider={authProvider}>
    <Resource name="users" list={ UserList } layout={ MyLayout } edit={UserEdit} create={UserCreate} />
  </Admin>

in UserList.js

export const UserEdit = (props) => {
  <Edit  {...props}>
    <SimpleForm>
      <ReferenceInput source="id" reference="users">
        <SelectInput optionText="id" />
      </ReferenceInput>
      <TextInput source="firstName" />
      <TextInput source="lastName" />
      <TextInput source="email" />
      <TextInput source="organization" />
      <TextInput source="status" />
    </SimpleForm>
  </Edit>
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You have a problem here:

<Resource name="users" list={ UserList } layout={ MyLayout } edit={UserEdit} create={UserCreate} />

layout is an Admin prop, It shouldn't be in a Resource

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!