DEPRECATED, I recommend you the tool SVGR
A react component to clean and display raw SVGs.
$ npm install react-svg-inline
You might also need to npm install raw-loader
if you want to use this with
webpack.
Here is an example of a usage in a React stateless component: