{"id":19208595,"url":"https://github.com/heiwa4126/tutorial-recoil0","last_synced_at":"2026-05-04T17:36:50.294Z","repository":{"id":111911889,"uuid":"577641912","full_name":"heiwa4126/tutorial-recoil0","owner":"heiwa4126","description":"RecoilのチュートリアルをTypeScriptのVite4で","archived":false,"fork":false,"pushed_at":"2026-04-07T01:15:23.000Z","size":228,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-07T03:16:45.918Z","etag":null,"topics":["immer","react","recoil","tutorial","typescript","vite"],"latest_commit_sha":null,"homepage":"","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/heiwa4126.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-13T07:39:52.000Z","updated_at":"2026-04-07T01:15:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"74f06e7f-8dd1-4fd6-99b5-1611659312ef","html_url":"https://github.com/heiwa4126/tutorial-recoil0","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heiwa4126/tutorial-recoil0","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Ftutorial-recoil0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Ftutorial-recoil0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Ftutorial-recoil0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Ftutorial-recoil0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heiwa4126","download_url":"https://codeload.github.com/heiwa4126/tutorial-recoil0/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Ftutorial-recoil0/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32618241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"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":["immer","react","recoil","tutorial","typescript","vite"],"created_at":"2024-11-09T13:27:08.582Z","updated_at":"2026-05-04T17:36:50.275Z","avatar_url":"https://github.com/heiwa4126.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tutorial-recoil0\n\n- [Recoilのチュートリアル](https://recoiljs.org/docs/basic-tutorial/intro)\n  - [Learn Recoil with Live Walkthrough](https://app.sideguide.dev/recoil/tutorial/)\n- [React Recoil入門 Todoアプリを作成してRecoilの基本設定を理解 \\| アールエフェクト](https://reffect.co.jp/react/react-recoil)\n\nをTypeScriptでやってみたもの。\n\n## 開発\n\nViteなので\n```bash\nnpm i\nnpm run dev\n```\n\n## ビルド\n\nViteなので\n```bash\nnpm i\nnpm run build\nnpm run preview\n```\n\n## 自分なりのまとめ\n\n### atom\n\n[atom(options) | Recoil](https://recoiljs.org/docs/api-reference/core/atom)\n\nMVCのM的なもの。stateを定義するものであり、stateそのものでもある。\n\n使用方法は\n- stateの変更がある場合 - [useRecoilState(state)](https://recoiljs.org/docs/api-reference/core/useRecoilState)\n- stateの参照だけの場合 - [useRecoilValue(state)](https://recoiljs.org/docs/api-reference/core/useRecoilValue)\n\n### selector\n\n[selector(options) | Recoil](https://recoiljs.org/docs/api-reference/core/selector)\n\nSQLのview的なもの。しかしこれもstate。getterとsetter(こっちはオプション)を指定して作れる。\nstateなので\n[useRecoilState(state)](https://recoiljs.org/docs/api-reference/core/useRecoilState), [useRecoilValue(state)](https://recoiljs.org/docs/api-reference/core/useRecoilValue) で使える。\n\n実装内部ではget(atom), set(atom)が使える。\n\n### useSetRecoilState(state)\n\n[useSetRecoilState(state) | Recoil](https://recoiljs.org/docs/api-reference/core/useSetRecoilState)\n\nstateのsetterを返す関数。なんだけどそう単純ではない。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiwa4126%2Ftutorial-recoil0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheiwa4126%2Ftutorial-recoil0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiwa4126%2Ftutorial-recoil0/lists"}