{"id":19319046,"url":"https://github.com/ericrabil/react-use-persistent","last_synced_at":"2025-07-30T13:34:06.154Z","repository":{"id":57347170,"uuid":"357259615","full_name":"EricRabil/react-use-persistent","owner":"EricRabil","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-12T16:12:53.000Z","size":214,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T09:48:22.908Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/EricRabil.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}},"created_at":"2021-04-12T16:12:50.000Z","updated_at":"2021-04-12T16:12:56.000Z","dependencies_parsed_at":"2022-09-18T10:51:11.160Z","dependency_job_id":null,"html_url":"https://github.com/EricRabil/react-use-persistent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EricRabil/react-use-persistent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricRabil%2Freact-use-persistent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricRabil%2Freact-use-persistent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricRabil%2Freact-use-persistent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricRabil%2Freact-use-persistent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EricRabil","download_url":"https://codeload.github.com/EricRabil/react-use-persistent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricRabil%2Freact-use-persistent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267875731,"owners_count":24158781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-10T01:21:45.630Z","updated_at":"2025-07-30T13:34:06.125Z","avatar_url":"https://github.com/EricRabil.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-use-persistent\n\n\u003e Persistent state made easy\n\n## Install\n\n```bash\nnpm install --save react-use-persistent\n```\n\n## Usage\n\n```tsx\nimport React, { Component } from 'react'\n\nimport { usePersistent } from 'react-use-persistent'\n\nfunction MyComponent() {\n  const [ setting, setSetting ] = usePersistent(\"localstorage-key\", false);\n\n  return (\n    \u003cinput type=\"checkbox\" checked={setting} onChange={event =\u003e setSetting(event.target.checked)} /\u003e\n  )\n}\n```\n\n## License\n\nMIT © [EricRabil](https://github.com/EricRabil)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericrabil%2Freact-use-persistent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericrabil%2Freact-use-persistent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericrabil%2Freact-use-persistent/lists"}