{"id":16912982,"url":"https://github.com/a145789/vscode-quick-usestate","last_synced_at":"2025-04-12T19:35:15.223Z","repository":{"id":63696088,"uuid":"557141331","full_name":"a145789/vscode-quick-useState","owner":"a145789","description":"quick generate React useState code","archived":false,"fork":false,"pushed_at":"2022-11-24T02:49:53.000Z","size":246,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T13:46:17.633Z","etag":null,"topics":["extension","visual-studio-code","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=clencat.react-quick-useState","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/a145789.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}},"created_at":"2022-10-25T06:36:42.000Z","updated_at":"2025-03-18T12:35:12.000Z","dependencies_parsed_at":"2022-11-24T03:58:07.961Z","dependency_job_id":null,"html_url":"https://github.com/a145789/vscode-quick-useState","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a145789%2Fvscode-quick-useState","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a145789%2Fvscode-quick-useState/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a145789%2Fvscode-quick-useState/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a145789%2Fvscode-quick-useState/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a145789","download_url":"https://codeload.github.com/a145789/vscode-quick-useState/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248622293,"owners_count":21135012,"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":["extension","visual-studio-code","vscode","vscode-extension"],"created_at":"2024-10-13T19:11:44.294Z","updated_at":"2025-04-12T19:35:15.194Z","avatar_url":"https://github.com/a145789.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eReact Quick useState\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\nQuick generate React useState code\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://marketplace.visualstudio.com/items?itemName=clencat.react-quick-useState\" target=\"__blank\"\u003e\u003cimg src=\"https://img.shields.io/visual-studio-marketplace/v/clencat.react-quick-useState.svg?color=4d9375\u0026amp;label=Marketplace\u0026logo=visual-studio-code\" alt=\"Visual Studio Marketplace Version\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Usage\n\nEnter `const ` to open the prompt, use __/__ to split code.\n\n\n```ts\n// input \nconst count/0\n// output\nconst [count, setCount] = useState(0)\n\n// input \nconst name/string/'John'\n// output\nconst [name, setName] = useState\u003cstring\u003e('John')\n\n// input \nconst arr/number[]/[]\n// output\nconst [arr, setArr] = useState\u003cnumber[]\u003e([])\n\n// input \nconst fooBar/Foo | Bar/'foo'\n// output\nconst [fooBar, setFooBar] = useState\u003cFoo | Bar\u003e('foo')\n```\n\n\u003e 如果没显示提示，请键入 `/` 字符开启提示\n\n\u003e If no prompt is displayed, type the character `/` to enable the prompt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa145789%2Fvscode-quick-usestate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa145789%2Fvscode-quick-usestate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa145789%2Fvscode-quick-usestate/lists"}