没有合适的资源?快使用搜索试试~ 我知道了~
:atom_symbol: React.Children 数据结构的扩展实用程序,添加递归过滤器、映射和更多方法来迭代嵌套子项。
共89个文件
md:20个
html:11个
ts:11个
需积分: 13 0 下载量 185 浏览量
2021-06-08
17:00:24
上传
评论
收藏 183KB ZIP 举报
温馨提示
React Children Utilities React 子级不透明数据结构的递归和扩展实用程序。 安装 可作为一个包使用,并且可以在安装对等依赖后使用 npm 或 yarn 添加到您的应用程序中 react # with yarn yarn add react-children-utilities react # with npm npm install --save react-children-utilities 用法 此包扩展现有的 React.Children 实用程序,您可以将其作为一个整体导入。 从“React”导入React; 从“react-children-utilities”导入儿童; const MyComponent = ({ children }) => { const onlySpans = Children.filter(children, (child) => child.type === 'span'); 返回
资源推荐
资源详情
资源评论
收起资源包目录
react-children-utilities-master.zip (89个子文件)
react-children-utilities-master
.eslintrc.json 1KB
tsconfig.all.json 261B
.lintstagedrc.json 101B
.flowconfig 58B
.gitattributes 12B
rollup.config.js 408B
.github
stale.yml 247B
PULL_REQUEST_TEMPLATE.md 481B
dependabot.yml 132B
ISSUE_TEMPLATE
bug_report.md 651B
feature_request.md 480B
yarn.lock 319KB
.prettierignore 176B
src
lib
deepFilter.ts 736B
groupByType.ts 867B
filter.ts 285B
onlyText.ts 1003B
hasChildren.ts 310B
deepMap.ts 826B
__tests__
deepForEach.spec.tsx 2KB
deepFilter.spec.tsx 3KB
deepFind.spec.tsx 2KB
onlyValid.spec.tsx 3KB
filter.spec.tsx 2KB
groupByType.spec.tsx 6KB
hasChildren.spec.tsx 3KB
hasComplexChildren.spec.tsx 3KB
deepMap.spec.tsx 1KB
onlyText.spec.tsx 3KB
deepFind.ts 922B
deepForEach.ts 580B
hasComplexChildren.ts 504B
onlyValid.ts 264B
__tests__
react-children-utilities.spec.tsx 1KB
react-children-utilities.ts 819B
.circleci
config.yml 3KB
THANKS.md 12KB
.prettierrc.json 100B
.all-contributorsrc.json 2KB
CONTRIBUTING.md 1KB
tsconfig.json 871B
LICENSE 1KB
jest.config.js 287B
README.md 7KB
.husky
pre-push 54B
commit-msg 68B
pre-commit 59B
.gitignore 2B
.commitlintrc.json 53B
docs
only-text.md 852B
index.md 21B
deep-find.md 2KB
api.md 813B
group-by-type.md 2KB
_layouts
home.html 389B
default.html 357B
page.html 230B
compress.html 4KB
_sass
hero.scss 111B
main.scss 191B
normalize.scss 6KB
content-table.scss 1KB
button.scss 489B
code.scss 2KB
text.scss 466B
top-bar.scss 794B
footer.scss 58B
layout.scss 184B
_includes
content-table.html 612B
github-icon.html 719B
top-bar.html 633B
head.html 153B
google-analytics.html 378B
styles.html 120B
footer.html 135B
has-children.md 979B
filter.md 2KB
deep-map.md 2KB
has-complex-children.md 1KB
getting-started.md 1KB
only-valid.md 1KB
deep-foreach.md 2KB
_config.yml 975B
deep-filter.md 2KB
.editorconfig 595B
CODE_OF_CONDUCT.md 5KB
.gitignore 316B
.eslintignore 62B
package.json 4KB
共 89 条
- 1
资源评论
婉君喜欢DIY
- 粉丝: 13
- 资源: 4617
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功