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

171
Views
SVG image shows weird shadows after compiled by React.js

I have a svg image that contains some shadows on several elements and it works nicely in a django project. I now included that in my react.js project and it suddenly drops weird shadows. Why's that and where to fix this in react?

// Landing.js

import Body from './Body'
import { ReactComponent as Logo } from '../../assets/images/illu_how.svg'
import React from "react";

import './Landing.css'

function Landing(props) {
    return (
        <Body>
        <div className="image-wrapper animate__animated animate__fadeInRight"><Logo classname="illu_how" /></div>
</Body>

JS fiddle due to SO character limitation

React.js project:

enter image description here enter image description here

Django project:

enter image description here enter image description here

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

0

I got it finally... the issue was the import

import { ReactComponent as Logo } from '../../assets/images/illu_how.svg'

that caused the shadow problem for whatever reason.

This works just fine:

import illustration from '../../assets/images/illu_how.svg'
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!