【文件属性】:
文件名称:reactstrap-confirm:reactstrap的基于承诺的确认对话框
文件大小:243KB
文件格式:ZIP
更新时间:2021-07-24 08:56:40
JavaScript
React带确认
一个易于使用的基于承诺的 reactstrap 确认对话框。
这个包的目标是为开发人员提供一种简单易行的方式来在他们的应用程序中显示确认对话框,而不必担心状态或必须在许多地方重复相同的组件。
演示: :
安装
只需使用 npm
npm i --save reactstrap-confirm
你也可以使用纱线
yarn add reactstrap-confirm
依赖关系
你必须在你的项目中手动安装 react、react-dom 和 reactstrap 才能让这个模块正常工作。
用法
只需导入模块并在代码中的任何位置将其作为函数调用。
import confirm from "reactstrap-confirm" ;
// ...code
let result = await confirm ( ) ; //will display a confi
【文件预览】:
reactstrap-confirm-master
----.travis.yml(64B)
----.eslintrc(540B)
----.babelrc(196B)
----stories()
--------0-Confirm.stories.js(4KB)
----.storybook()
--------main.js(226B)
----package.json(3KB)
----.github()
--------workflows()
----test()
--------confirm.test.js(482B)
--------components()
----.prettierrc(74B)
----.prettierignore(18B)
----LICENSE(1KB)
----package-lock.json(1.1MB)
----src()
--------index.js(477B)
--------components()
----.npmignore(75B)
----jest.config.json(24B)
----examples()
--------src()
----.gitignore(77B)
----webpack.config.js(740B)
----CHANGELOG.md(468B)
----README.md(3KB)
----.editorconfig(147B)