{"id":21699778,"url":"https://github.com/arjuncvinod/react-hooks","last_synced_at":"2025-10-15T02:02:54.686Z","repository":{"id":211722655,"uuid":"729807724","full_name":"arjuncvinod/React-hooks","owner":"arjuncvinod","description":"React Hooks implementation with example","archived":false,"fork":false,"pushed_at":"2023-12-23T17:36:19.000Z","size":241,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T07:51:16.381Z","etag":null,"topics":["usecallback","usecontext","useeffect","useimperativehandle","uselayouteffect","usememo","usereducer","useref","usestate"],"latest_commit_sha":null,"homepage":"https://react-hooks-acv.vercel.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arjuncvinod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-12-10T12:28:07.000Z","updated_at":"2024-06-06T12:51:36.000Z","dependencies_parsed_at":"2023-12-23T18:51:17.522Z","dependency_job_id":"9b534d59-68a5-423d-8608-de42626e1e92","html_url":"https://github.com/arjuncvinod/React-hooks","commit_stats":null,"previous_names":["arjuncvinod/react-hooks"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjuncvinod%2FReact-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjuncvinod%2FReact-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjuncvinod%2FReact-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjuncvinod%2FReact-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arjuncvinod","download_url":"https://codeload.github.com/arjuncvinod/React-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571836,"owners_count":21126522,"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":["usecallback","usecontext","useeffect","useimperativehandle","uselayouteffect","usememo","usereducer","useref","usestate"],"created_at":"2024-11-25T20:11:23.973Z","updated_at":"2025-10-15T02:02:54.622Z","avatar_url":"https://github.com/arjuncvinod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Hooks Implementation\n## [Live Demo](https://react-hooks-acv.vercel.app/)\n\n## Hooks\n\n### 1. [useState](https://github.com/arjuncvinod/React-hooks/blob/master/src/useState/UseState.jsx)\n`useState` is a hook that allows functional components to manage local state. It returns a stateful value and a function to update it, enabling you to create dynamic and interactive UIs.\n\n### 2. [useEffect](https://github.com/arjuncvinod/React-hooks/blob/master/src/useEffect/UseEffect.jsx)\n`useEffect` is used for side effects in functional components. It lets you perform tasks like data fetching, subscriptions, or manually changing the DOM in a clean and efficient way.\n\n### 3. [useRef](https://github.com/arjuncvinod/React-hooks/blob/master/src/useRef/UseRef.jsx)\n`useRef` returns a mutable object called a `ref` object, which has a `.current` property. It is commonly used to access and interact with the DOM directly or to persist values across renders without causing re-renders.\n\n### 4. [useReducer](https://github.com/arjuncvinod/React-hooks/blob/master/src/useReducer/UseReducer.jsx)\n`useReducer` is a powerful alternative to `useState` for managing more complex state logic. It accepts a reducer function and an initial state, providing a dispatch function to update the state based on actions.\n\n### 5. [useLayoutEffect](https://github.com/arjuncvinod/React-hooks/blob/master/src/useLayoutEffect/UseLayoutEffect.jsx)\n`useLayoutEffect` is similar to `useEffect` but fires synchronously after all DOM mutations. It's useful when you need to perform measurements or manipulate the DOM immediately after the browser paints.\n\n### 6. [useImperativeHandle](https://github.com/arjuncvinod/React-hooks/tree/master/src/useImperativeHandle/UseImperativeHandle.jsx)\n`useImperativeHandle` customizes the instance value that is exposed when using `React.forwardRef`. It allows you to control which properties of the component are exposed to the parent component when using `ref`.\n\n### 7. [useContext](https://github.com/arjuncvinod/React-hooks/tree/master/src/useContext/UseContext.jsx)\n`useContext` is used to consume values from a React context. It allows functional components to subscribe to a context's changes, providing a more straightforward way to share values like themes or authentication states.\n\n### 8. [useMemo](https://github.com/arjuncvinod/React-hooks/tree/master/src/useMemo/UseMemo.jsx)\n`useMemo` memoizes the result of a function, preventing unnecessary recalculations. It is beneficial for optimizing performance by caching expensive calculations or references.\n\n### 9. [useCallback](https://github.com/arjuncvinod/React-hooks/tree/master/src/useCallback/UseCallback.jsx)\n`useCallback` memoizes a callback function, preventing it from being recreated on each render. It is useful when passing callbacks to child components to avoid unnecessary re-renders.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjuncvinod%2Freact-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farjuncvinod%2Freact-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjuncvinod%2Freact-hooks/lists"}