UNPKG

471 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} from './test.md';
8
9console.log('md:', md);
10
11const App = () => (
12 <div className={styles.app}>
13
14 </div>
15);
16
17const M = () => {
18 return (
19 <div
20 dangerouslySetInnerHTML={{ __html: md }}
21 />
22 )
23}
24
25// RM.render(<M />, document.getElementById('comp'));
26
27
28export default App;
\No newline at end of file