SVGs in React
Learn to use SVGs to style the modern react app.
We'll cover the following...
To create a modern React application, we’ll likely need to use SVGs. Instead of giving every button element text, for instance, we might want to make it lightweight with an icon. In this section, we’ll use a scalable vector graphic (SVG) as an icon in one of our React components.
This section builds on the “CSS in React” we covered earlier, to give the SVG icon a good look and feel right away. It’s acceptable to use a different styling approach, or no styling at all, though the ...