DEV Community

# hook

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
React Hooks vs. Redux

React Hooks vs. Redux

179
Comments 41
4 min read
Popular patterns and anti-patterns with React Hooks

Popular patterns and anti-patterns with React Hooks

117
Comments 3
6 min read
Ditching useState and useReducer: Why useImmer is the better option

Ditching useState and useReducer: Why useImmer is the better option

106
Comments 44
7 min read
How to use the State Hook in React

How to use the State Hook in React

83
Comments 8
5 min read
How to use the Effect Hook in React

How to use the Effect Hook in React

68
Comments
8 min read
Learn React Hook by building a Simple Blog App

Learn React Hook by building a Simple Blog App

64
Comments 2
21 min read
✨ Introducing use-places-autocomplete: React hook for Google Maps Places Autocomplete

✨ Introducing use-places-autocomplete: React hook for Google Maps Places Autocomplete

59
Comments 15
3 min read
Git Hooks 101

Git Hooks 101

59
Comments 2
2 min read
React Hook - Clean Up useEffect

React Hook - Clean Up useEffect

58
Comments 5
3 min read
Translations for React using i18n hook

Translations for React using i18n hook

55
Comments 2
2 min read
React Performance Booster - Introduction to the useMemo hook

React Performance Booster - Introduction to the useMemo hook

55
Comments 27
3 min read
Infinite Scroll with React Hook & Intersection Observer

Infinite Scroll with React Hook & Intersection Observer

52
Comments 2
1 min read
React Usecallback for Kids/Beginners

React Usecallback for Kids/Beginners

45
Comments 17
2 min read
useState() vs setState() - Strings, Objects, and Arrays

useState() vs setState() - Strings, Objects, and Arrays

42
Comments 2
5 min read
How to setup Git commit hooks for PHP

How to setup Git commit hooks for PHP

37
Comments 5
2 min read
How to create a custom React hook to fetch an API (using TypeScript)?

How to create a custom React hook to fetch an API (using TypeScript)?

36
Comments 5
5 min read
Hooks in React

Hooks in React

36
Comments 5
3 min read
A Guide to React Custom Hooks

A Guide to React Custom Hooks

34
Comments 8
3 min read
✨ Introducing react-cool-onclickoutside: A React hook to listen for clicks outside of the component(s)

✨ Introducing react-cool-onclickoutside: A React hook to listen for clicks outside of the component(s)

30
Comments 2
3 min read
A Custom React Hook that handles duplicate API call

A Custom React Hook that handles duplicate API call

23
Comments 2
1 min read
React Hook login using Azure Active Directory

React Hook login using Azure Active Directory

21
Comments
3 min read
✨ Introducing react-cool-portal: React hook for Portals, which renders modals, dropdowns, tooltips etc. to <body> or else

✨ Introducing react-cool-portal: React hook for Portals, which renders modals, dropdowns, tooltips etc. to <body> or else

19
Comments 2
4 min read
✨ Introducing react-cool-inview: React hook to monitor an element enters or leaves the viewport (or another element)

✨ Introducing react-cool-inview: React hook to monitor an element enters or leaves the viewport (or another element)

19
Comments
6 min read
Use Functional Component with React Hooks to replace class component

Use Functional Component with React Hooks to replace class component

18
Comments 3
2 min read
React hooks: useSessionStorage and useLocalStorage

React hooks: useSessionStorage and useLocalStorage

18
Comments 3
1 min read
Simple React fade animation hook

Simple React fade animation hook

17
Comments 1
2 min read
✨ Introducing react-cool-form: React hooks for forms state and validation, less code more performant

✨ Introducing react-cool-form: React hooks for forms state and validation, less code more performant

17
Comments 1
3 min read
Homebrew React Hooks: useCurrent

Homebrew React Hooks: useCurrent

15
Comments
6 min read
How to create composable forms using React Hook Form, Compound Components and Zod

How to create composable forms using React Hook Form, Compound Components and Zod

14
Comments 1
3 min read
Store state in cookies with use-cookie-state React hook

Store state in cookies with use-cookie-state React hook

14
Comments 1
3 min read
React Hook – Async function in useEffect

React Hook – Async function in useEffect

14
Comments 7
1 min read
Custom React Hook - useObjectState

Custom React Hook - useObjectState

13
Comments
1 min read
Understanding react hook-useState()

Understanding react hook-useState()

13
Comments
2 min read
Getting started with useReducer Hook!

Getting started with useReducer Hook!

13
Comments 2
2 min read
Wrap your library in a React hook

Wrap your library in a React hook

13
Comments
2 min read
Should I still use connect() function? #React.js

Should I still use connect() function? #React.js

12
Comments 1
2 min read
Axios Interceptor Hook Typescript

Axios Interceptor Hook Typescript

12
Comments
3 min read
useRef()가 순수 자바스크립트 객체라는 의미를 곱씹어보기

useRef()가 순수 자바스크립트 객체라는 의미를 곱씹어보기

12
Comments 4
2 min read
Complete TEMPLATE for REACT SPA (2021)

Complete TEMPLATE for REACT SPA (2021)

11
Comments
13 min read
🧿 Turn React into SolidJS, update on demand, no more re-render

🧿 Turn React into SolidJS, update on demand, no more re-render

11
Comments
5 min read
Week 7 - Todo-Add App

Week 7 - Todo-Add App

10
Comments
2 min read
Guide to React hook- useReducer

Guide to React hook- useReducer

10
Comments 2
4 min read
Custom React Hook - useIntersection with Intersection Observer

Custom React Hook - useIntersection with Intersection Observer

10
Comments
1 min read
Week 4 - Handle Input App

Week 4 - Handle Input App

9
Comments
1 min read
Introduction to Fiddlehead: A Fast and Lightweight UI Library

Introduction to Fiddlehead: A Fast and Lightweight UI Library

9
Comments 4
2 min read
React Custom Hooks: Scroll Indicator

React Custom Hooks: Scroll Indicator

9
Comments
1 min read
✨ React hook for highly-performant and manipulable animations using Web Animations API

✨ React hook for highly-performant and manipulable animations using Web Animations API

9
Comments
6 min read
⚛️ React Intersection Observer 👀 Hook 🪝.

⚛️ React Intersection Observer 👀 Hook 🪝.

9
Comments
2 min read
How to Handle Media Query Through Javascript

How to Handle Media Query Through Javascript

9
Comments
5 min read
Making use of useContext Hook!

Making use of useContext Hook!

9
Comments
1 min read
Create your own pre-commit hook

Create your own pre-commit hook

8
Comments 2
4 min read
A Keyboard Avoiding View for React Native in 2021

A Keyboard Avoiding View for React Native in 2021

8
Comments 2
4 min read
✨ Introducing react-cool-virtual: A tiny React hook for rendering large datasets like a breeze

✨ Introducing react-cool-virtual: A tiny React hook for rendering large datasets like a breeze

8
Comments
11 min read
Introduction to React Hooks 🪝

Introduction to React Hooks 🪝

8
Comments
3 min read
Hướng dẫn hoàn chỉnh để sử dụngRef () và Refs trong React

Hướng dẫn hoàn chỉnh để sử dụngRef () và Refs trong React

8
Comments
8 min read
React native simple FPS counter

React native simple FPS counter

7
Comments
3 min read
React.useCallback()

React.useCallback()

7
Comments
2 min read
React useFilter Hook

React useFilter Hook

7
Comments
2 min read
✨ Introducing react-cool-dimensions: React hook to measure an element's size and handle responsive components

✨ Introducing react-cool-dimensions: React hook to measure an element's size and handle responsive components

7
Comments
3 min read
Recommended React Hooks Convention

Recommended React Hooks Convention

7
Comments
5 min read
loading...