SVGs (Scalable Vector Graphics) are an XML-based vector images used to define 2D graphics. An SVG file has the .svg file extension.
SVGs are used in websites/webpages to seamlessly integrate 2D graphics into HTML. Recently, with the rise of Web Frameworks (Svelte, React, Angular, React, etc) SVGs have been a major occurrence and now largely used to embed images in components as icons.
In this post, we‘ll convert SVGs to React components using SVGR.

#javascript #programming #svg #react #svgr #react-native

Transform an SVG into a React Component with SVGR
4.10 GEEK