sindresorhus/refined-github
The issue has been closed
Use package octicons instead of including icons.tsx #1752
fregante posted onGitHub
https://www.npmjs.com/package/octicons
Import as plain text:
import doma from 'doma';
import alertIcon from 'octicons/build/svg/alert.svg';
document.body.append(doma.one(alertIcon))
Or as JSX with https://github.com/janjakubnanista/svg-jsx-loader
import alert from 'octicons/build/svg/alert.svg';
document.body.append(alert());
There's also the official @githubprimer/octicons-react
package but I don't think it's being built+published correctly yet.
Also possibly: https://github.com/siddharthkp/jsxo but it needs Babel