Skip to content

Instantly share code, notes, and snippets.

/svgicon Secret

Created February 6, 2018 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2d3b074bf551a9cbd37772422d94c1f6 to your computer and use it in GitHub Desktop.
Save anonymous/2d3b074bf551a9cbd37772422d94c1f6 to your computer and use it in GitHub Desktop.
svgicon component used in radioimage
import React, { Component } from 'react'
import mySvg from './logo.svg'
export default class Svgicon extends Component {
render() {
return (
<div className='header'>
<span dangerouslySetInnerHTML={{__html: mySvg}} />
</div>
);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment