{"id":25759625,"url":"https://github.com/maechabin/typescript-react-demo","last_synced_at":"2025-05-13T03:39:01.037Z","repository":{"id":84291638,"uuid":"91479615","full_name":"maechabin/typescript-react-demo","owner":"maechabin","description":"A simple sample of React in TypeScript","archived":false,"fork":false,"pushed_at":"2018-10-06T03:47:10.000Z","size":314,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T06:14:46.992Z","etag":null,"topics":["react","sample","typescript","webpack"],"latest_commit_sha":null,"homepage":"https://mae.chab.in/archives/59782","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/maechabin.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":"2017-05-16T16:21:42.000Z","updated_at":"2020-09-15T07:15:47.000Z","dependencies_parsed_at":"2023-03-04T22:30:38.913Z","dependency_job_id":null,"html_url":"https://github.com/maechabin/typescript-react-demo","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/maechabin%2Ftypescript-react-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Ftypescript-react-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Ftypescript-react-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Ftypescript-react-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maechabin","download_url":"https://codeload.github.com/maechabin/typescript-react-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253870796,"owners_count":21976608,"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":["react","sample","typescript","webpack"],"created_at":"2025-02-26T17:37:11.404Z","updated_at":"2025-05-13T03:39:01.025Z","avatar_url":"https://github.com/maechabin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeScript-React-Demo\n\nTypeScript で書いた React のデモ\n\n## Demo\n\nテキストフォームに入力した名前を表示する Hello World。\n\nhttps://maechabin.github.io/typescript-react-demo/\n\n## Demo のソースコード\n\n- [src/Hello.tsx](https://github.com/maechabin/typescript-react-demo/blob/master/src/Hello.tsx)\n- [index.html](https://github.com/maechabin/typescript-react-demo/blob/master/index.html)\n\n## Demo の確認\n\n### 1. Demo のダウンロード（clone）\n\n```\n$ git clone git@github.com:maechabin/typescript-react-demo.git typescript-react-demo\n```\n\n### 2. Demo を clone したディレクトリに移動して、必要なパッケージのインストール\n\n```\n$ cd typescript-react-demo\n$ npm install\n```\n\n### 3. Demo を開く\n\n```\n$ open ./index.html\n```\n\n## Demo の修正 =\u003e webpack でビルド\n\n### 1. 「.src/Hello.tsx」を修正したら、以下のコマンドを実行\n\n```\n$ npm run build\n```\n\n#### ファイルを監視して webpack をビルドする場合\n\n```\n$ npm run watch\n```\n\n#### HMR を使用する場合\n\n```\n$ npm run server\n```\n\nhttp://localhost:8080で確認\n\n### 2. Demo を開く\n\n```\n$ open ./index.html\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaechabin%2Ftypescript-react-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaechabin%2Ftypescript-react-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaechabin%2Ftypescript-react-demo/lists"}