react-actionsheet
Installation
npm i react-actionsheet --save
Demo
state = show: false { const show = thisstate this } { this } { const show = thisstate const tip = show ? '隐藏' : '显示' const menus = content: '点我' content: '不要点我' return <div> <button onClick=thisonClick>tip</button> <Actionsheet show=show menus=menus onRequestClose=thisonRequestClose /> </div> }