【文件属性】:
文件名称:react-modal2:用于React的简单模态组件
文件大小:19KB
文件格式:ZIP
更新时间:2021-03-06 22:50:49
JavaScript
react-modal2
用于React的简单模式组件。
不败
无状态(哑组件)
无障碍
通用/同构
通过的构建
安装
$ npm install -- save react - modal2
用法
ReactModal2尝试将其最小化。 这意味着它需要一些设置,但是给您完全的灵活性来执行您想要的操作。
让我们从ReactModal2的实际API开始:
< ReactModal2
// A callback that gets called whenever the `esc` key is pressed, or the
// backdrop is clicked.
onClose = { this . handleClose . bind ( this ) }
// Enable/Disable calling `onClose` when the `esc
【文件预览】:
react-modal2-master
----.gitignore(32B)
----.babelrc(41B)
----.eslintrc(887B)
----package.json(2KB)
----src()
--------Modal.js(3KB)
--------index.js(31B)
----karma.conf.js(3KB)
----LICENSE(1KB)
----CHANGELOG.md(1KB)
----README.md(6KB)
----example()
--------.gitignore(12B)
--------redux()
--------animated()
--------universal()
--------basic()
----.npmignore(59B)
----test()
--------.eslintrc(200B)
--------index.js(5KB)