UNPKG

858 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
13import { Layout, Menu, Breadcrumb, Icon } from 'antd';
14
15
16
17class App extends React.Component {
18 constructor(props) {
19 super(props);
20 }
21
22 componentDidMount() {
23 }
24
25 handleClicked(page) {
26 this.refs.render.setPage(page);
27 }
28
29 render() {
30 return (
31 <div className={styles.app}>
32 <Render ref='render'/>
33 <button onClick={this.handleClicked.bind(this, 'A')}>测试A</button>
34 <button onClick={this.handleClicked.bind(this, 'B')}>测试B</button>
35
36 </div>
37 )
38 }
39}
40
41export default App;
\No newline at end of file