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

201
Views
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
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!