{"id":20621715,"url":"https://github.com/3d-dev/react-router-v6","last_synced_at":"2025-03-06T23:18:44.309Z","repository":{"id":41140448,"uuid":"508402477","full_name":"3D-Dev/React-router-v6","owner":"3D-Dev","description":"tested the React-router lastest version 6 in codeSandbox","archived":false,"fork":false,"pushed_at":"2022-06-28T20:28:10.000Z","size":370,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T05:27:36.727Z","etag":null,"topics":["axios-react","browserrouter","goback","react","react-router-dom-v6","react-router-v6","refresh","sample-code","usenavigate"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/react-router-v6-new-81moov","language":"JavaScript","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/3D-Dev.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":"2022-06-28T17:54:56.000Z","updated_at":"2023-03-30T21:38:49.000Z","dependencies_parsed_at":"2022-09-09T02:30:24.737Z","dependency_job_id":null,"html_url":"https://github.com/3D-Dev/React-router-v6","commit_stats":null,"previous_names":["softwareengineer0/react-router-v6","3d-dev/react-router-v6"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3D-Dev%2FReact-router-v6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3D-Dev%2FReact-router-v6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3D-Dev%2FReact-router-v6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3D-Dev%2FReact-router-v6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3D-Dev","download_url":"https://codeload.github.com/3D-Dev/React-router-v6/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242298974,"owners_count":20104922,"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":["axios-react","browserrouter","goback","react","react-router-dom-v6","react-router-v6","refresh","sample-code","usenavigate"],"created_at":"2024-11-16T12:19:07.379Z","updated_at":"2025-03-06T23:18:44.289Z","avatar_url":"https://github.com/3D-Dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-Router-V6 \u0026 useNavigate \u0026 BrowserRouter \u0026 Axios\n\n## Installing\n```js\nnpm install\n```\n\n## add the following import statement:\n```js\nimport { BrowserRouter,Route,Routes } from 'react-router-dom';\n```\n\n## \u003cRoute element\u003e\n```js\n\u003cRoute path=\"/\" element={\u003cUsers /\u003e} /\u003e\n\u003cRoute path=\"/detail/:id\" exact element={\u003cUserDetail /\u003e} /\u003e\n```\n\n## implemented the module of geting *json data from url using axios\n```js\n  const fetchData = async () =\u003e {\n    let response = await axios.get(\n      \"https://jsonplaceholder.typicode.com/posts/1/comments\"\n    );\n    if (response.status === 200) {\n      setUsers(response.data);\n    }\n  };\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3d-dev%2Freact-router-v6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3d-dev%2Freact-router-v6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3d-dev%2Freact-router-v6/lists"}