shift73k/assets_old/node_modules/svg-sprite-loader/examples/custom-runtime-generator/main.jsx

15 lines
366 B
React
Raw Normal View History

import React from 'react';
import { render } from 'react-dom';
import TwitterIcon from '../assets/twitter.svg';
import WikipediaIcon from '../assets/wikipedia.svg';
document.addEventListener('DOMContentLoaded', () => {
render(
<div>
<TwitterIcon width="100" />
<WikipediaIcon width="200" />
</div>,
document.querySelector('.app')
);
});