I have this component
import leftArrow from "../../../../../assets/svg/left.svg";
export const LeftArrow = (props) => {
const {className, style, onClick} = props
return (
<div
className="slick-arrow"
style={{...style, display: 'block'}}
onClick={onClick}
>
<img src={leftArrow} alt="arrow_left"/>
</div>
);
}
I'm making custom arrows for the react-slick carousel, The problem is images are not being displayed. The path is right but the images are .svg icons. I'm also using babel. Any solutions, please?
It just displays undefined picture with alt "arrow left"