{"id":27134634,"url":"https://github.com/espadv69/usecontext-basics","last_synced_at":"2026-05-09T09:37:29.352Z","repository":{"id":286647217,"uuid":"962077715","full_name":"Espadv69/useContext-Basics","owner":"Espadv69","description":"useContext-Basics is a collection of three simple React projects that demonstrate how to use the useContext hook for global state management. Each mini-project focuses on a different real-world scenario: theme toggling, user authentication, and language selection.","archived":false,"fork":false,"pushed_at":"2025-04-07T17:23:05.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T17:27:24.687Z","etag":null,"topics":["authentication","dark-theme","hooks","idioms","javascript","languages","light-theme","provider","react","states","switch","usecontext","useeffect","users","vite"],"latest_commit_sha":null,"homepage":"","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/Espadv69.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":"2025-04-07T16:01:50.000Z","updated_at":"2025-04-07T17:23:08.000Z","dependencies_parsed_at":"2025-04-07T17:27:30.931Z","dependency_job_id":"9850bead-39a1-4dff-bc6d-50ceef08cd5d","html_url":"https://github.com/Espadv69/useContext-Basics","commit_stats":null,"previous_names":["espadv69/usecontext-basics"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Espadv69%2FuseContext-Basics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Espadv69%2FuseContext-Basics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Espadv69%2FuseContext-Basics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Espadv69%2FuseContext-Basics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Espadv69","download_url":"https://codeload.github.com/Espadv69/useContext-Basics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755591,"owners_count":20990626,"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","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":["authentication","dark-theme","hooks","idioms","javascript","languages","light-theme","provider","react","states","switch","usecontext","useeffect","users","vite"],"created_at":"2025-04-08T00:48:59.222Z","updated_at":"2026-05-09T09:37:29.318Z","avatar_url":"https://github.com/Espadv69.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# useContext-Basics\n\n**useContext-Basics** is a collection of three simple React projects that demonstrate how to use the `useContext` hook for global state management. Each mini-project focuses on a different real-world scenario: theme toggling, user authentication, and language selection.\n\n## 📁 Projects\n\n1. **ThemeToggle-Context**  \n   Toggle between light and dark mode using `ThemeContext`.\n\n2. **AuthContextDemo-Context**  \n   Simulated login/logout functionality with `AuthContext`.\n\n3. **LanguageSelector-Context**  \n   Switch between different languages using `LanguageContext`.\n\n## 🚀 Getting Started\n\nEach project is located in its own folder. You can run them individually:\n\n```bash\n  cd ProjectFolderName\n  npm install\n  npm run dev\n```\n\n#### Example:\n\n```bash\n  cd ThemeToggle-Context\n  npm install\n  npm run dev\n```\n\n## 🛠️ Requirements\n\n- Node.js and npm installed\n- Basic knowledge of React\n\n## 📚 Topics Covered\n\n- Creating and using context providers\n- Sharing state across components\n- Managing themes, auth state, and language preferences globally\n\n## 🤝 Contributing\n\nFeel free to submit issues or pull requests to improve this project.\n\n## 📄 License\n\nThis project is licensed under the **[MIT License](https://opensource.org/license/mit)**.\n\n---\n\nMade with ❤️ by Espadv69\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fespadv69%2Fusecontext-basics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fespadv69%2Fusecontext-basics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fespadv69%2Fusecontext-basics/lists"}