No longer need the hack to only use them in components while URLs are used in styles since I don't need icons in the styles anymore. Embedding the markup also provides the option to restyle the icons
14 lines
385 B
JavaScript
14 lines
385 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import '../style.css';
|
|
|
|
import Message from '../components/Message';
|
|
import ErrorIcon from 'feather-icons/dist/icons/alert-octagon.svg';
|
|
|
|
ReactDOM.render(
|
|
<Message icon={ ErrorIcon } heading="404 Page Not Found">
|
|
<p>The page you have requested could not be found</p>
|
|
</Message>,
|
|
document.getElementById('root'));
|