1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/svg-sprite-loader/examples/custom-runtime-generator/main.jsx

15 lines
366 B
React
Raw Normal View History

2023-12-18 13:12:25 +08:00
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')
);
});