{"id":23297644,"url":"https://github.com/drag13/react-hooks-examples","last_synced_at":"2025-04-06T19:54:17.840Z","repository":{"id":84050831,"uuid":"488582966","full_name":"Drag13/react-hooks-examples","owner":"Drag13","description":"This is the collection of examples for the course React for Beginners from Itera","archived":false,"fork":false,"pushed_at":"2022-05-11T15:14:42.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T01:54:14.364Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Drag13.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}},"created_at":"2022-05-04T12:39:05.000Z","updated_at":"2022-05-04T12:42:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6b9009f-f307-4a6a-9cc6-48abea3b91ed","html_url":"https://github.com/Drag13/react-hooks-examples","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/Drag13%2Freact-hooks-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drag13%2Freact-hooks-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drag13%2Freact-hooks-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drag13%2Freact-hooks-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Drag13","download_url":"https://codeload.github.com/Drag13/react-hooks-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543608,"owners_count":20955865,"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-12-20T07:18:41.335Z","updated_at":"2025-04-06T19:54:17.813Z","avatar_url":"https://github.com/Drag13.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React hooks examples for the Free React Course For Beginners by Itera\n\n## Install\n\n```cmd\nnpm ci\n```\n\n## Run examples:\n\n### State\n\nState - a way to store the data that is subject to change!\n\n```cmd\nnpm run start:state\n```\n\nFor the complex states - take a look into the useReducer\n\n### Effect\n\nEffect - a way to intercept lifecycle events and perform side effects\n\n```cmd\nnpm run start:effect\n```\n\n### Context\n\nContext - a transport that allows you to get anything in the components without accessing props\n\n```cmd\nnpm run start:context\n```\n\n### Callback\n\nCallback - a way to memoize the function\n\n```cmd\nnpm run start:callback\n```\n\n### Custom\n\nWriting custom callback\n\n```cmd\nnpm run start:custom\n```\n\n## Takeaways\n\n- Hook - a modern to API to functional components\n- Most useful are useState, useEffect\n- You can write your own hooks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrag13%2Freact-hooks-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrag13%2Freact-hooks-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrag13%2Freact-hooks-examples/lists"}