{"id":27351865,"url":"https://github.com/ikoamu/react-router-snippets","last_synced_at":"2026-04-29T17:05:11.804Z","repository":{"id":286823412,"uuid":"962585777","full_name":"ikoamu/react-router-snippets","owner":"ikoamu","description":"Simple and Useful Snippets for React Router v7","archived":false,"fork":false,"pushed_at":"2025-04-08T15:32:03.000Z","size":4845,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T20:53:59.172Z","etag":null,"topics":["react-router","remix","snippets","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items/?itemName=ikoamu.react-router-snippets","language":null,"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/ikoamu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2025-04-08T11:27:13.000Z","updated_at":"2025-04-08T15:32:08.000Z","dependencies_parsed_at":"2025-04-08T15:33:27.775Z","dependency_job_id":null,"html_url":"https://github.com/ikoamu/react-router-snippets","commit_stats":null,"previous_names":["ikoamu/react-router-snippets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ikoamu/react-router-snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikoamu%2Freact-router-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikoamu%2Freact-router-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikoamu%2Freact-router-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikoamu%2Freact-router-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikoamu","download_url":"https://codeload.github.com/ikoamu/react-router-snippets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikoamu%2Freact-router-snippets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32435122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"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":["react-router","remix","snippets","vscode","vscode-extension"],"created_at":"2025-04-12T20:53:57.925Z","updated_at":"2026-04-29T17:05:11.779Z","avatar_url":"https://github.com/ikoamu.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# VSCode React Router Snippets\n\nSimple and Useful Snippets for [React Router v7](https://reactrouter.com/)\n\n## Demo\n\n| Configuring Routes                                   | Implement Page                                |\n| ---------------------------------------------------- | --------------------------------------------- |\n| ![Configuring Routes](images/configuring-routes.gif) | ![ Implement Page](images/implement-page.gif) |\n\n## Snippets\n\n| From                                  | Snippet        | Renders                                           |\n| ------------------------------------- | -------------- | ------------------------------------------------- |\n| **R**ou**t**e                         | `rt`           | `route(\"pattern\", \"file\"),`                       |\n| **I**ndex **R**ou**t**e , **Ind**ex   | `irt` , `ind`  | `index(\"file\"),`                                  |\n| **N**ested **R**ou**t**e , **Nest**ed | `nrt` , `nest` | `route(\"parent\", \"file\", [ ]),`                   |\n| **L**ayout **R**ou**t**e , **Lay**out | `lrt` , `lay`  | `layout(\"file\", [ ]),`                            |\n| **P**refix **R**ou**t**e , **Pre**fix | `prt` , `pre`  | `...prefix(\"pattern\", [ ]),`                      |\n| **Imp**ort Route Type                 | `imp`          | `import type { Route } from \"./+types/...\";`      |\n| **L**oa**d**er                        | `ld`           | `export async function loader({ ... }) { }`       |\n| **C**lient **L**oa**d**er             | `cld`          | `export async function clientLoader({ ... }) { }` |\n| **Ac**tion                            | `ac`           | `export async function action({ ... }) { }`       |\n| **C**lient **Ac**tion                 | `cac`          | `export async function clientAction({ ... }) { }` |\n| headers()                             | `headers`      | `export function headers() { return { }; }`       |\n| Route handle                          | `handle`       | `export const handle = { };`                      |\n| links()                               | `links`        | `export function links() { return [ ]; }`         |\n| meta()                                | `meta`         | `export function meta() { return [ ]; }`          |\n| **s**hould**R**e**v**alidate          | `srv`          | `export function shouldRevalidate(arg) { }`       |\n| **R**oute **C**omponent               | `rc`           | `export default function Component() { }`         |\n| **E**rror**B**oundary                 | `eb`           | `export function ErrorBoundary() { }`             |\n| **H**ydrate**F**allback               | `hf`           | `export function HydrateFallback() { }`           |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikoamu%2Freact-router-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikoamu%2Freact-router-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikoamu%2Freact-router-snippets/lists"}