-
Notifications
You must be signed in to change notification settings - Fork 0
/
go.js
37 lines (35 loc) · 894 Bytes
/
go.js
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
/**
* Created by moyu on 2017/8/2.
*/
import React from 'react'
import ReactDOM from 'react-dom'
import {debug} from 'react-mhoc'
import MSlide from './'
const DebugMSlide = debug({infoDown: true})(MSlide)
ReactDOM.render(
<DebugMSlide
visibleBlockNum={1}
visibleBlockSize={2}
>
<div style={
{
backgroundColor: 'red',
width: 100,
height: 100
}
}>Hello</div>
<div style={
{
backgroundColor: 'orange'
}
}>World</div>
<div style={{
backgroundColor: 'yellow',
width: 50,
height: 80
}}>Hello</div>
<div style={{backgroundColor: 'green'}}>React</div>
<div style={{backgroundColor: 'cyan'}}>MSlide</div>
</DebugMSlide>,
document.getElementById('root')
)