UNPKG

487 BJavaScriptView Raw
1import React from 'react';
2import styles from './App.css';
3// import 'antd/dist/antd.css';
4import {Button, DatePicker } from 'antd';
5import RM from 'react-dom';
6
7import Comp, {md, id} from './test.md';
8
9console.log('md:', md);
10
11const App = () => (
12 <div className={styles.app}>
13 <div
14 dangerouslySetInnerHTML={{ __html: decodeURIComponent(md) }}
15 />
16 </div>
17);
18
19setTimeout(_ => {
20 RM.render(<Comp />, document.getElementById(id));
21}, 1000);
22
23//
24
25
26export default App;
\No newline at end of file