I can't modify my SVG component in my React Application

前端 未结 3 494
耶瑟儿~
耶瑟儿~ 2021-01-28 23:27

I have been trying to fill the color of an SVG component in React, but it won\'t work.

I\'ve tried using an image tag to React. However, I read on the React docs that CS

3条回答
  •  甜味超标
    2021-01-28 23:55

    I removed the svg style fill-opacity:0 from the svg file itself. You could also change the 0 to 1 if you that works for you.

提交回复
热议问题