The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Render Basic SVG Components in React

Render Basic SVG Components in React

1:35
React loves svg just as much as it loves html. In this lesson we cover how simple it is to make SVG components in ReactJS. Creating SVG components with React allows you to inline SVG. Inline SVG has an advantage that it can be styled with CSS just like the rest of your webpage and doesn't need a separate web request to load. An additional advantage is of-course that you can use component props to customize the contents of the SVG.
Watch this lesson now
Avatar
egghead.io

React loves svg just as much as it loves html. In this lesson we cover how simple it is to make SVG components in ReactJS.

Creating SVG components with React allows you to inline SVG. Inline SVG has an advantage that it can be styled with CSS just like the rest of your webpage and doesn't need a separate web request to load.

An additional advantage is of-course that you can use component props to customize the contents of the SVG.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?