react-create-modal:React组件以显示模态框

时间:2021-05-02 06:30:40
【文件属性】:
文件名称:react-create-modal:React组件以显示模态框
文件大小:538KB
文件格式:ZIP
更新时间:2021-05-02 06:30:40
JavaScript React创建模态 React组件以显示模态框 安装 该软件包可以通过NPM安装: npm install react-create-modal --save 受到W3Schools 启发 样品用法: import React , { PureComponent } from 'react' ; import Modal from 'react-create-modal' ; class SomeComponent extends PureComponent { constructor ( props ) { super ( props ) ; this . state = { isOpen : false } ; } render ( ) { return ( < div> < button onClick = { (
【文件预览】:
react-create-modal-master
----.eslintrc.json(622B)
----stories()
--------components()
--------index.js(315B)
----webpack.config.js(713B)
----src()
--------Modal.jsx(739B)
--------Modal.css(837B)
----.babelrc(107B)
----.storybook()
--------config.js(190B)
----jest.config.js(95B)
----README.md(1KB)
----docs()
--------index.html(1KB)
--------favicon.ico(5KB)
--------iframe.html(789B)
--------static()
----.gitignore(624B)
----.eslintignore(8B)
----package.json(1KB)

网友评论