@ARiYaNSEp0-0
Posted
well there are multiple ways for handling svg in react. first and most straightforward way is to import them, import the asset and then use it in src attribute for example :
import icon from 'path_to_svg/*.svg'
...
...
<img src={icon} ..../>
or you can wrap the svg code in a component and use it that component there is another way i recently used and it is "svgr" plugin it's a plugin which makes your svg to components easily and automatically try it if you want
Marked as helpful
@progressive-newbie263
Posted
@ARiYaNSEp0-0 thanks chief, i will try it