基于react实现的移动端的可吸附悬浮按钮
预览地址(移动端):
https://kkfor.github.io/suspe…
源码地址:
https://github.com/kkfor/susp…
安装
npm install suspend-button -S
使用
import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import SuspendButton from 'suspend-button'
class App extends Component {
render() {
return (
<SuspendButton></SuspendButton>
)
}
}
ReactDOM.render(
<App />,
document.getElementById('container')
)