UNPKG

677 BJavaScriptView Raw
1import React from 'react';
2import styles from './App.css';
3// import 'antd/dist/antd.css';
4import RM from 'react-dom';
5
6import Render from './render';
7// import {Comp, md, id} from './test.md';
8// const mid = './test.md';
9// const MD = require(mid + '');
10// const MD2 = require(p.substr());
11// const MD2 = require('../md')
12
13
14class App extends React.Component {
15 constructor(props) {
16 super(props);
17 }
18
19 componentDidMount() {
20 }
21
22 handleClicked() {
23 this.refs.render.setPage('A');
24 }
25
26 render() {
27 return (
28 <div className={styles.app}>
29 <button onClick={this.handleClicked.bind(this)}>测试</button>
30 </div>
31 )
32 }
33}
34
35export default App;
\No newline at end of file