Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

212
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda