{"id":15827210,"url":"https://github.com/awran5/react-hooks-firebase-starter-project","last_synced_at":"2026-04-05T08:33:57.007Z","repository":{"id":123896633,"uuid":"235565485","full_name":"awran5/react-hooks-firebase-starter-project","owner":"awran5","description":null,"archived":false,"fork":false,"pushed_at":"2020-01-22T15:14:50.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-18T00:51:18.862Z","etag":null,"topics":["firebase","firestore","react-hooks","reactjs","starter-template","usecontext"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awran5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-01-22T12:08:06.000Z","updated_at":"2023-02-12T16:17:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"b492055b-5920-426b-8f07-bfb728afd522","html_url":"https://github.com/awran5/react-hooks-firebase-starter-project","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"4c4afe3596bef34fc46c0bf4858eca2da1736e0b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/awran5/react-hooks-firebase-starter-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awran5%2Freact-hooks-firebase-starter-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awran5%2Freact-hooks-firebase-starter-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awran5%2Freact-hooks-firebase-starter-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awran5%2Freact-hooks-firebase-starter-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awran5","download_url":"https://codeload.github.com/awran5/react-hooks-firebase-starter-project/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awran5%2Freact-hooks-firebase-starter-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31430009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T08:13:15.228Z","status":"ssl_error","status_checked_at":"2026-04-05T08:13:11.839Z","response_time":75,"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":["firebase","firestore","react-hooks","reactjs","starter-template","usecontext"],"created_at":"2024-10-05T10:02:04.509Z","updated_at":"2026-04-05T08:33:56.985Z","avatar_url":"https://github.com/awran5.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n## React Firebase Starter Project with hooks\n\nThis is a starter React-Firebase project using React [useContext[](https://reactjs.org/docs/hooks-reference.html#usecontext ) Hook that will build a React Context Provider/Consumer and initialize Firebase at the very top of your code and make it available anywhere in your project.\n\n### Start - clone this repository\n\n```java\ngit clone https://github.com/awran5/react-hooks-firebase-starter-project.git\n```\n\n### Install using Yarn\n\n```java\nyarn\n```\n\n### Install using npm\n\n```java\nnpm install\n```\n\n### useSnapshots Usage example:\n\n```js\nimport React from 'react'\nimport { useSnapshots } from './hooks/useFirebase'\n\nfunction App() {\n  const { loading, data } = useSnapshots('collection name')\n\n  return (\n    \u003cdiv className=\"App\"\u003e\n      {loading ? (\n        \u003ch1\u003eLoading...\u003c/h1\u003e\n      ) : (\n        data.map(({ id, title }) =\u003e \u003cdiv key={id}\u003e{title}\u003c/div\u003e)\n      )}\n    \u003c/div\u003e\n  )\n}\n\nexport default App\n\n```\n\n### Get a single DOC by its ID using useDocs example:\n\n```js\nimport React from 'react'\nimport { useDocs } from './hooks/useFirebase'\n\nfunction App() {\n  const { loading, data } = useDocs('collection name', doc id)\n\n  return (\n    \u003cdiv className=\"App\"\u003e\n      ...\n      ...\n    \u003c/div\u003e\n  )\n}\n\nexport default App\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawran5%2Freact-hooks-firebase-starter-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawran5%2Freact-hooks-firebase-starter-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawran5%2Freact-hooks-firebase-starter-project/lists"}