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

75
Views
Img tag doesn't show image in React JSX

I'm trying to add a logo to a Header component in react, but it's not showing. It's like it is transparent because if I justify items with flex and space between, it counts like an element. I don't know what I'm doing wrong.

import React from "react";
import "./Header.css";

const Header = () => {
  return (
    <div className="header">
      <img src="../img/logo.png" alt="" />
      <h1>ONE</h1>
      <h1>TWO</h1>
    </div>
  );
};

export default Header;
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

import logo from '<PATH>';

return <img src={logo} alt="Logo" />;
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!