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

163
Views
Broken img on React

I need to help. My problem is broken img.I work on React. How can I solve ?

enter image description here

enter image description here

console

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Seems like the path to image is broken, try to solve it by import image in the head of the file and add image path to your <img> element

import React, { Component } from 'react';
import logo from './logo.png';     // <-- import image here

class test extends Component {
    render() {
        return (
            <>
                <img src={logo} /> // <-- add image path here
            </>
        );
    }
}

export default test;

docs for adding images to your react app https://create-react-app.dev/docs/adding-images-fonts-and-files/

about 4 years ago · Juan Pablo Isaza Report

0

you must import that image and set width and height for that image

import image1 from "./1.jpg";

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!