{"id":20269427,"url":"https://github.com/thammami01/react-ts-code-snippets","last_synced_at":"2025-09-22T12:31:01.818Z","repository":{"id":196059720,"uuid":"610194529","full_name":"THammami01/react-ts-code-snippets","owner":"THammami01","description":"React/TypeScript Code Snippets Extension for Visual Studio Code.","archived":false,"fork":false,"pushed_at":"2023-03-11T23:46:10.000Z","size":121,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-14T12:30:58.254Z","etag":null,"topics":["collaborate","communityexchange","github","react-ts","snippets","student-vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=THammami01.react-ts-code-snippets","language":"TypeScript","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/THammami01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-06T09:33:13.000Z","updated_at":"2024-05-23T07:21:14.000Z","dependencies_parsed_at":"2023-09-21T06:28:52.997Z","dependency_job_id":null,"html_url":"https://github.com/THammami01/react-ts-code-snippets","commit_stats":null,"previous_names":["thammami01/react-ts-code-snippets"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THammami01%2Freact-ts-code-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THammami01%2Freact-ts-code-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THammami01%2Freact-ts-code-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THammami01%2Freact-ts-code-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/THammami01","download_url":"https://codeload.github.com/THammami01/react-ts-code-snippets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233847775,"owners_count":18739693,"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":["collaborate","communityexchange","github","react-ts","snippets","student-vscode","vscode-extension"],"created_at":"2024-11-14T12:25:08.804Z","updated_at":"2025-09-22T12:31:01.684Z","avatar_url":"https://github.com/THammami01.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React TS Code Snippets for VS Code\n\nAll abbreviations share a\n`rt` (for React TS) prefix.\n\n## rt\u003cu\u003efc\u003c/u\u003e - Functional Component\n\n```tsx\nimport type { FC } from 'react';,\n\ninterface |Props {|}\n\nconst |: FC\u003c|Props\u003e = (|) =\u003e {\n  return (|);\n}\n\nexport default |;\n```\n\n## rt\u003cu\u003eus\u003c/u\u003e - useState Hook\n\n```tsx\nconst [|, set|] = useState(|);\n```\n\n## rt\u003cu\u003eue\u003c/u\u003e - useEffect Hook\n\n```tsx\nuseEffect(() =\u003e {\n  |\n}, [|]);\n```\n\n## rt\u003cu\u003eif\u003c/u\u003e - Import From\n\n```tsx\nimport | from '|';\n```\n\n## rt\u003cu\u003eipf\u003c/u\u003e - Import Props From\n\n```tsx\nimport { | } from '|';\n```\n\n## rt\u003cu\u003exc\u003c/u\u003e - Export Const\n\n```tsx\nexport const | = |;\n```\n\n## rt\u003cu\u003exd\u003c/u\u003e - Export Default\n\n```tsx\nexport default |;\n```\n\n## rt\u003cu\u003exaf\u003c/u\u003e - Export All From\n\n```tsx\nexport * from \"|\";\n```\n\n## rt\u003cu\u003exdf\u003c/u\u003e - Export Default From\n\n```tsx\nexport { default } from \"|\";\n```\n\n## rt\u003cu\u003exdaf\u003c/u\u003e - Export Default As From\n\n```tsx\nexport { default as | } from '|';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthammami01%2Freact-ts-code-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthammami01%2Freact-ts-code-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthammami01%2Freact-ts-code-snippets/lists"}