Skip to content

Instantly share code, notes, and snippets.

@doug2k1
Last active August 31, 2017 19:35
Show Gist options
  • Save doug2k1/6695af20c51e0872fc189d308076a163 to your computer and use it in GitHub Desktop.
Save doug2k1/6695af20c51e0872fc189d308076a163 to your computer and use it in GitHub Desktop.
import React from 'react'
import './icons.svg'
const Icon = (props) => (
<svg className={`icon icon-${props.name}`}>
<use xlinkHref={`#icons_${props.name}`} />
</svg>
)
export default Icon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment