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