没有合适的资源?快使用搜索试试~ 我知道了~
react-modal:React模态
共16个文件
js:10个
json:2个
babelrc:1个
需积分: 34 1 下载量 60 浏览量
2021-02-21
06:57:33
上传
评论
收藏 90KB ZIP 举报
温馨提示
React模态 一个简单的react + styled-components模态 套件介面 命名导出: Modal , useModalContext , ModalContainer和ModalContent 默认导出: Modal 用法 1)作为子代传递函数以访问模态方法 < Modal xss=removed> < div> Modal Content < / div > } > { ( { showModal } ) => < button onClick = { showModal } > Button to trigger modal < / button > } < / Modal > 2)模态方法传递给直接后代 const SampleButton = ( { showModal } ) => { return < button onClick
资源推荐
资源详情
资源评论
收起资源包目录
react-modal-master.zip (16个子文件)
react-modal-master
.gitignore 166B
.babelrc 246B
changelog.config.js 2KB
package.json 2KB
commitlint.config.js 72B
package-lock.json 356KB
src
ModalContext.js 212B
Modal.js 6KB
index.js 185B
CloseIcon.js 767B
styled.js 1KB
webpack.config.js 809B
README.md 8KB
prettier.config.js 103B
index.html 285B
demo.js 619B
共 16 条
- 1
资源评论
hsjdbdb
- 粉丝: 21
- 资源: 4586
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功