{"id":16770487,"url":"https://github.com/mainick/react-hooks","last_synced_at":"2025-10-10T10:14:40.101Z","repository":{"id":153136382,"uuid":"314181266","full_name":"mainick/react-hooks","owner":"mainick","description":"Esempi con gli hooks di React","archived":false,"fork":false,"pushed_at":"2020-11-22T09:41:34.000Z","size":220,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T02:31:50.018Z","etag":null,"topics":["react","react-hooks","useeffect-hook","usestate-hook"],"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/mainick.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":"2020-11-19T08:21:30.000Z","updated_at":"2023-03-08T23:09:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb168dc8-31a2-45a4-bfb1-e05ce288d30f","html_url":"https://github.com/mainick/react-hooks","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/mainick%2Freact-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainick%2Freact-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainick%2Freact-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainick%2Freact-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mainick","download_url":"https://codeload.github.com/mainick/react-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243886190,"owners_count":20363686,"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","react-hooks","useeffect-hook","usestate-hook"],"created_at":"2024-10-13T06:24:25.154Z","updated_at":"2025-10-10T10:14:35.077Z","avatar_url":"https://github.com/mainick.png","language":"JavaScript","readme":"# Esempi React Hooks\n\nGli Hooks ci consentono di utilizzare lo stato, gli \"effetti collaterali\" e altre funzionalità nei componenti funzionali. \n\nPrima i componenti funzionali venivano chiamati componenti funzionali stateless (FSC), ovvero senza stato, \nora **grazie agli Hooks siamo in grado di usare lo stato e non è più necessario creare un componente di classe per utilizzarlo**.\n\nQui troverete esempi per come utilizzare gli hooks più comuni: \n- Hook State **useState**: AppHookState.js\n- Hook Effect **useEffect**: AppHookEffect.js\n\ne come creare e utilizzare un hook personalizzato:\n- Hook Custom **useFetch**: AppHookCustom.js\n\nimportare il componente del relativo hook in *index.js* per vederlo in opera.\n\nhttps://codesandbox.io/s/react-hooks-vcrku","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainick%2Freact-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmainick%2Freact-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainick%2Freact-hooks/lists"}