SyntaxFix
Write A Post
Hire A Developer
Questions
If you use create-react-app 2.0 you can now do do it like this:
import { ReactComponent as YourSvg } from './your-svg.svg';
And then use it just like you would normally use a component:
const App = () => ( <div> <YourSvg /> </div> );