-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.js
More file actions
50 lines (46 loc) · 1.46 KB
/
test.js
File metadata and controls
50 lines (46 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import React, { Component, PropTypes } from 'react';
import ReactDOM from 'react-dom';
import Tab, { TabTitle, TabPanel } from './index';
class App extends Component {
constructor(props, context){
super(props, context);
}
render(){
return (
<Tab defaultSelectedTab="b">
<TabTitle label="a">
TabTitle a
</TabTitle>
<TabTitle label="b">
TabTitle b
</TabTitle>
<TabTitle label="c">
TabTitle c
</TabTitle>
<TabPanel for="a">
TabPanel a
</TabPanel>
<TabPanel for="b">
TabPanel b
</TabPanel>
<TabPanel for="c">
<Tab>
<TabTitle label="a">
sub TabTitle a
</TabTitle>
<TabTitle label="b">
sub TabTitle b
</TabTitle>
<TabPanel for="a">
sub TabPanel a
</TabPanel>
<TabPanel for="b">
sub TabPanel b
</TabPanel>
</Tab>
</TabPanel>
</Tab>
);
}
}
ReactDOM.render(<App/>, document.getElementById('root'));