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

207
Vistas
material-ui/core components not showing image - react

i am following this mern stack tutorail here: https://www.youtube.com/watch?v=ngc9gnGgUdA&list=PL6QREj8te1P7VSwhrMf3D3Xt4V6_SRkhu&ab_channel=JavaScriptMastery

and am stuck at around 33:00

i have embedded the material-ui/core components - Container, AppBar, Typography as specified with thier attributes but it does not show the image or any of the material-ui/core components when i run it.

i have tested this just using a div tag with the image tag inside and it displays it fine so im not sure material-ui/core components cannot do it. So i know the issue is not with the image or image file path.

it compiles fine showing just warnings for the components i have not used however when it renders in the browser it does not show the image at all or any of the material-ui/core components.

here is my App.js file:

import React from 'react';
import { Container, AppBar, Typography, Grow, Grid } from '@material-ui/core';

import memories from './images/memories.png'

const App = () => {
    return (         
        <Container maxWidth="lg">
            <AppBar position="static" color="inherit">
                <Typography variant="h2" align="center">Memories</Typography>
                 <img src={memories} alt="memories" height="60" width="60" />
            </AppBar>
        </Container> 
    );
};

export default App;

here is my index.js file:

import React from 'react';
import ReactDOM from 'react-dom';

import App from './App'

ReactDOM.render(<App />, document.getElementById('root'));

Any help would be much appreciated and more than happy to clarify anything :)

about 4 years ago · Santiago Gelvez
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