CHIRAG KUMARichiragkumar.tech·Apr 25, 2024Browser functionality-related hooks : online/offlineusing custom Hooks in React, with Browser functionality we can check whether the Internet connection is Online or Offline // it reutrn true or false window.navigator.onLine import React, { useState,useEffect } from 'react'; import axios from 'axios'...browser functionality hooks
Piyush NanwaniforAtomxelblog.atomxel.com·Mar 27, 2024The React Hooks you need to knowIn this blog, we'll cover fundamental hooks like useState, useEffect, useRef, and useContext. Then we will talk about custom hooks. React Hooks useState The useState hook allows functional components to manage state. Let's look at a simple example: i...1 like·61 readsReact
Rodgers Ogadaogadar.hashnode.dev·Jan 24, 2024Using React Custom HooksScenario I'm tasked with handling the logout logic for our React application. We have a redux store that stores a user's state once we pass a JWT token upon login. Simple right? What are hooks and and custom hooks? Hooks In React, a hook is a special...1 like·66 readsReact
Vishal Jadhavvampired.hashnode.dev·Jan 15, 2024"React Custom Hooks: Simplifying Complex Tasks for a Smoother Development Journey"Introduction: In the dynamic world of web development, creating modular and reusable code is essential for maintaining clean and efficient projects. One powerful feature of React is custom hooks, allowing developers to encapsulate logic and share it ...Full Stack Development
Henna Singhcodelady.hashnode.dev·Jan 5, 2024Reusability - ReactNotes from Scrimba Advance React course React allows to create components that can be re-used anywhere its needed in the application. This helps simplify codebase in larger code-bases. The listed topics include: Children Compound Components Contex...1 like·63 readsFrontend Developer Bootcampreact components
LingarajTechhub All About Programminglingarajtechhub.com·Dec 21, 202310 interview questions regarding ReactJS custom HookHere are 10 interview questions related to React custom hooks: What is a custom hook in React? Explain the concept of custom hooks and their role in React applications. How do you create a custom hook in React? Describe the process of creating a...React
InseoYang1nxeo.hashnode.dev·Nov 15, 2023React custom hook - useInput 정성들여 깎기개인프로젝트의 useInput 커스텀 훅을 보다가 좀 더 재사용 가능하게 고치고싶어졌다. 기존 코드 import { useState } from "react"; import { InputValue } from "../../../data/type/type"; export const useInput = (initialValue: InputValue) => { const [inputValue, setInputValue] = useState<In...#customhooks
Nirmal Kumarnirmalkumar.hashnode.dev·Nov 15, 2023A Guide to Debouncing in JavaScript and React | Create a Custom HookIntroduction In our daily surfing of the web, we’ve encountered dynamic web features like auto-complete search boxes (as in Google), drag-and-drop functionality, and smooth scrolling effects. These seamless interactions often rely on techniques like ...React
Ahmad Jajjajajja.hashnode.dev·May 25, 2023React HooksReact Hooks are a feature introduced in React 16.8 that allows developers to use state and other React features in functional components without the need to write a class. Before Hooks, stateful logic and lifecycle methods were only available in clas...react hooks
Shradha Singhshradhasingh.hashnode.dev·Apr 27, 2023Improving API Calls in React with Custom Hooks: A Guide to Graceful ImplementationWhen building modern web applications, it's common to make asynchronous calls to APIs to retrieve data. Managing these asynchronous calls can quickly become complex and repetitive, especially when dealing with multiple API endpoints or when handling ...7 likes·220 readsReact