react-foreach:一个React组件,使用函数作为子组件来呈现集合的每个元素

时间:2021-04-27 14:03:34
【文件属性】:
文件名称:react-foreach:一个React组件,使用函数作为子组件来呈现集合的每个元素
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-27 14:03:34
react map foreach JavaScript React前 一个React组件,使用一个函数作为子组件来呈现集合的每个元素。 安装 npm install --save react react-foreach 用法 您可以使用lodash的uniqueId()返回数组子项的唯一键。 < ForEach xss=removed> { ( value , index , array ) => ( < React xss=removed> < ListItem> { value } < / ListItem > < / React . Fragment > ) } < / ForEach > 原料药 特性 名称 类型 默认 描述 项目 大批 要渲染的项目列表。 执照 麻省理工学院
【文件预览】:
react-foreach-master
----.gitignore(73B)
----README.md(1008B)
----test()
--------index.js(1KB)
----LICENSE(1KB)
----.eslintrc(112B)
----package.json(2KB)
----src()
--------ForEach.jsx(542B)
--------index.js(60B)
----.babelrc(109B)
----setupTests.js(840B)
----.npmignore(37B)
----.travis.yml(232B)

网友评论