{"id":15829013,"url":"https://github.com/afeiship/react-list","last_synced_at":"2026-02-15T19:10:11.325Z","repository":{"id":57112673,"uuid":"227546180","full_name":"afeiship/react-list","owner":"afeiship","description":"List component for react.","archived":false,"fork":false,"pushed_at":"2025-02-22T09:56:07.000Z","size":626,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-04T19:53:38.702Z","etag":null,"topics":["each","for-each","list","map","react"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-12-12T07:27:43.000Z","updated_at":"2025-02-22T09:56:10.000Z","dependencies_parsed_at":"2024-04-21T08:46:39.577Z","dependency_job_id":"3b389f58-ad67-4b8b-b97a-651d0fe06995","html_url":"https://github.com/afeiship/react-list","commit_stats":{"total_commits":87,"total_committers":1,"mean_commits":87.0,"dds":0.0,"last_synced_commit":"fac7e66b304b6e89fa9cd48edde78ec06e9a68cb"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/react-list","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/react-list/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-list/sbom","scorecard":{"id":169572,"data":{"date":"2025-08-11","repo":{"name":"github.com/afeiship/react-list","commit":"f28f8411739e7f0168d4597e88b0439fb84182c1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-16T16:02:30.668Z","repository_id":57112673,"created_at":"2025-08-16T16:02:30.668Z","updated_at":"2025-08-16T16:02:30.668Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29487413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T15:33:17.885Z","status":"ssl_error","status_checked_at":"2026-02-15T15:32:53.698Z","response_time":118,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["each","for-each","list","map","react"],"created_at":"2024-10-05T11:00:28.585Z","updated_at":"2026-02-15T19:10:11.295Z","avatar_url":"https://github.com/afeiship.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-list\n\u003e List component for react.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm install -S @jswork/react-list\n```\n\n## usage\n1. import css\n  ```scss\n  @import \"~@jswork/react-list/dist/style.css\";\n\n  // or use sass\n  @import \"~@jswork/react-list/dist/style.scss\";\n  ```\n2. import js\n  ```js\n  import ReactList from '@jswork/react-list';\n  import './index.css';\n  import '@jswork/react-list/dist/style.scss';\n  import { useEffect, useState } from 'react';\n\n  function App() {\n    const [users, setUsers] = useState\u003cany[]\u003e([]);\n    const [isLoading, setIsLoading] = useState(true);\n\n    useEffect(() =\u003e {\n      setIsLoading(true);\n      setTimeout(() =\u003e {\n        setUsers([\n          { name: 'John', age: 25 },\n          { name: 'Mary', age: 30 },\n          { name: 'Tom', age: 35 },\n          { name: 'Jerry', age: 40 }\n        ]);\n        setIsLoading(false);\n      }, 2000);\n    }, []);\n\n    return (\n      \u003cdiv className=\"m-10 p-4 shadow bg-gray-100 y-5 text-gray-800 hover:shadow-md transition-all\"\u003e\n        \u003cdiv className=\"badge badge-warning absolute right-0 top-0 m-4\"\u003eBuild Time: {BUILD_TIME}\u003c/div\u003e\n        \u003ch1\u003ereact-list\u003c/h1\u003e\n        \u003cnav className=\"x-2\"\u003e\n          \u003cbutton className=\"btn btn-sm btn-primary\" onClick={() =\u003e setUsers([])}\u003e\n            Set Empty\n          \u003c/button\u003e\n          \u003cbutton\n            className=\"btn btn-sm btn-primary\"\n            onClick={() =\u003e setUsers([...users, { name: 'New', age: 10 }])}\n          \u003e\n            Add New\n          \u003c/button\u003e\n          \u003cbutton className=\"btn btn-sm btn-error\" onClick={() =\u003e setUsers(users.slice(0, -1))}\u003e\n            Remove Last\n          \u003c/button\u003e\n        \u003c/nav\u003e\n        \u003cdiv className=\"bg-blue-100 rounded p-2\"\u003e\n          \u003cReactList\n            items={users}\n            loading={isLoading}\n            templateLoading={() =\u003e {\n              return \u003cdiv className=\"p-2 text-center debug-blue text-gray-500\"\u003eLoading...\u003c/div\u003e;\n            }}\n            templateEmpty={() =\u003e {\n              return \u003cdiv className=\"p-2 text-center debug-blue text-gray-500\"\u003eEmpty View\u003c/div\u003e;\n            }}\n            template={({ item, index }) =\u003e {\n              return (\n                \u003cdiv key={index}\u003e\n                  \u003cp className=\"text-sm text-gray-700\"\u003e\n                    {index + 1}, {item.name} - {item.age}\n                  \u003c/p\u003e\n                \u003c/div\u003e\n              );\n            }}\n          /\u003e\n        \u003c/div\u003e\n      \u003c/div\u003e\n    );\n  }\n\n  export default App;\n  ```\n\n## preview\n- https://afeiship.github.io/react-list/\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/react-list/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/react-list\n[version-url]: https://npmjs.org/package/@jswork/react-list\n\n[license-image]: https://img.shields.io/npm/l/@jswork/react-list\n[license-url]: https://github.com/afeiship/react-list/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-list\n[size-url]: https://github.com/afeiship/react-list/blob/master/dist/react-list.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/react-list\n[download-url]: https://www.npmjs.com/package/@jswork/react-list\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Freact-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-list/lists"}