0.0.1 • Published 7 years ago

layer-for-react v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

react-layer

A layer system for React.

使用方法

import React from 'react'
import ReactDOM from 'react-dom'
import Layer from 'Layer'

const confirm = () => {
    console.log('on confirm')
}

const close = () => {
    console.log('on close')
}

ReactDOM.render((
        <Layer type={1}
            title={'我是标题'}
            content={'我是内容'}
            time={5000}
            text={'abc'}
            btns={btns}
        />
    ),
    document.getElementById('app')
)
0.0.1

7 years ago