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

79
Views
Image Not Showing React Props

I have images saved in a folder in my React app but for some reason when I pass their location link as props it does not show in my card...

<div className={projectCardColor}>
   <img src={props.img} alt="No Image" />
   <h4>{props.text}</h4>
   {props.liveLink && <Button><a href={props.liveLink}>Live</a></Button>}
   <Button><a href={props.githubLink}>Github</a></Button>
</div>

Here is the file that I pass the props.

{
            id: 'a8',
            img: '../assets/images/project-images/test.png',
            text: 'Some Text',
            githubLink: 'some link'
},

If I change the image link to some online link it works properly but not for internal link. Any ideas? If I define this image link as a parameter inside the component file it works properly but passing it as props break it. How come it works like that?

about 4 years ago · Juan Pablo Isaza
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!