{"id":13429503,"url":"https://github.com/latviancoder/hooks-by-example","last_synced_at":"2025-03-16T03:31:43.317Z","repository":{"id":98963794,"uuid":"155965594","full_name":"latviancoder/hooks-by-example","owner":"latviancoder","description":"Collection of beginner-friendly real world examples of hook usage.","archived":false,"fork":false,"pushed_at":"2019-10-31T17:51:16.000Z","size":144,"stargazers_count":137,"open_issues_count":3,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-27T07:32:23.911Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/latviancoder.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}},"created_at":"2018-11-03T08:44:48.000Z","updated_at":"2023-12-03T02:18:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1c83860-b334-4d68-a6e3-125bf779a851","html_url":"https://github.com/latviancoder/hooks-by-example","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/latviancoder%2Fhooks-by-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/latviancoder%2Fhooks-by-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/latviancoder%2Fhooks-by-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/latviancoder%2Fhooks-by-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/latviancoder","download_url":"https://codeload.github.com/latviancoder/hooks-by-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243822310,"owners_count":20353496,"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":[],"created_at":"2024-07-31T02:00:40.825Z","updated_at":"2025-03-16T03:31:42.996Z","avatar_url":"https://github.com/latviancoder.png","language":"JavaScript","funding_links":[],"categories":["Catalogs","合集","JavaScript"],"sub_categories":[],"readme":"Hooks. People love them, people hate them. But one is for sure - hooks are there to stay and React ecosystem is going to evolve, again.\n\nThe most important feature of hooks is sharing _reusable functionality_. In the past it was achieved using _mixins_, which were later deprecated in favor of patterns like _render props_ and _higher order components_. But these patterns introduced additional complexity and resulted in something now called _wrapper hell_.\n\n## What is this?\n\nThe purpose of this reposity is to provide beginner-friendly real-world examples of different hooks usage. Here are some of them:\n\n* Accordion [[code](src/components/accordion), [demo](https://hooks-by-example.now.sh/accordion)]\n* Todo list [[code](src/components/todo-list), [demo](https://hooks-by-example.now.sh/todo-list)]\n* Form validation library [[code](src/components/form-library), [demo](https://hooks-by-example.now.sh/form-library)]\n* Sortable [[code](src/components/sortable), [demo](https://hooks-by-example.now.sh/sortable)]\n* Concurrent React experiments\n\nThis application is built using `create-react-app`, so feel free to clone the repo and play with examples yourself.\n\n```\nyarn install\nyarn start\n```\n## Todo\n\nMore examples, more comments. Pull requests and overall suggestions are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flatviancoder%2Fhooks-by-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flatviancoder%2Fhooks-by-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flatviancoder%2Fhooks-by-example/lists"}