{"id":23076605,"url":"https://github.com/corbaz/ts-react-use-context-api","last_synced_at":"2025-04-03T12:16:38.860Z","repository":{"id":125339310,"uuid":"501359837","full_name":"corbaz/ts-react-use-context-api","owner":"corbaz","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-09T08:45:30.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-09T01:39:50.718Z","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/corbaz.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}},"created_at":"2022-06-08T18:05:21.000Z","updated_at":"2022-06-08T18:08:12.000Z","dependencies_parsed_at":"2023-08-11T04:32:52.809Z","dependency_job_id":null,"html_url":"https://github.com/corbaz/ts-react-use-context-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbaz%2Fts-react-use-context-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbaz%2Fts-react-use-context-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbaz%2Fts-react-use-context-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbaz%2Fts-react-use-context-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corbaz","download_url":"https://codeload.github.com/corbaz/ts-react-use-context-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246998229,"owners_count":20866696,"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":[],"created_at":"2024-12-16T09:41:55.502Z","updated_at":"2025-04-03T12:16:38.839Z","avatar_url":"https://github.com/corbaz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vite - Typescript - React - useContext (hook context-api)\n\n### Repo:\n\nhttps://github.com/corbaz/ts-react-use-context-api.git\n\n### vite.config.ts:\n\n```cmd\nimport { defineConfig } from \"vite\";\nimport react from \"@vitejs/plugin-react\";\n\n// https://vitejs.dev/config/\n// esta base se de usar para el deploy github pages\n// base: \"/ts-react-use-context-api/\",\n\nexport default defineConfig({\n  base: \"/\",\n  build: {\n    outDir: \"dist\",\n  },\n  plugins: [react()],\n});\n```\n\n---\n\n### package.json:\n\n```cmd\n{\n  \"name\": \"ts-react-use-context-api\",\n  \"private\": true,\n  \"version\": \"0.0.0\",\n  \"scripts\": {\n    \"git-create-repo\": \"gh repo create ts-react-use-context-api --public --source=. --remote=upstream\",\n    \"git-add-remote\": \"git remote add origin https://github.com/corbaz/ts-react-use-context-api.git \u0026\u0026 git branch -M main \u0026\u0026 git push -u origin main\",\n    \"git-remote-view\": \"git remote -v\",\n    \"git-remote-remove\": \"git remote rm upstream \u0026\u0026 git remote remove origin\",\n    \"git\": \"git add -A \u0026\u0026 git commit -m \\\"update\\\" \u0026\u0026 git push -u origin main\",\n    \"dev\": \"vite\",\n    \"build\": \"tsc \u0026\u0026 vite build\",\n    \"preview\": \"npm run build \u0026\u0026 vite preview\",\n    \"ncu\": \"cls \u0026\u0026 ncu \u0026\u0026 ncu u \u0026\u0026 npm i\",\n    \"deploy-surge-sh\": \"npm run build \u0026\u0026 surge dist ts-react-use-context-api.surge.sh \u0026\u0026 start msedge.exe https://ts-react-use-context-api.surge.sh\",\n    \"deploy-gh-pages\": \"npm run build \u0026\u0026 gh-pages -d dist \u0026\u0026 start msedge.exe https://corbaz.github.io/ts-react-use-context-api\"\n  },\n  \"dependencies\": {\n    \"axios\": \"^0.27.2\",\n    \"react\": \"^18.1.0\",\n    \"react-dom\": \"^18.1.0\",\n    \"toastify-js\": \"^1.11.2\"\n  },\n  \"devDependencies\": {\n    \"@types/react\": \"^18.0.12\",\n    \"@types/react-dom\": \"^18.0.5\",\n    \"@vitejs/plugin-react\": \"^1.3.2\",\n    \"gh-pages\": \"^4.0.0\",\n    \"npm-check-updates\": \"^13.1.2\",\n    \"typescript\": \"^4.7.3\",\n    \"vite\": \"^2.9.10\"\n  }\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorbaz%2Fts-react-use-context-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorbaz%2Fts-react-use-context-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorbaz%2Fts-react-use-context-api/lists"}