If you want to use SVG as a React Component, first, you need to convert the SVG file into a React Component, you can use online tools like Svg2jsx