DEV Community

# hooks

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
useStateWithPromise: a custom hook to await state updates of useState

useStateWithPromise: a custom hook to await state updates of useState

17
Comments 4
6 min read
the correct way to fetch data with react hooks

the correct way to fetch data with react hooks

72
Comments 12
3 min read
I replaced useState hook with custom one

I replaced useState hook with custom one

71
Comments 9
5 min read
Refactoring: Build a Date Picker in 15mins Using Javascript/React from Scratch

Refactoring: Build a Date Picker in 15mins Using Javascript/React from Scratch

7
Comments 2
3 min read
Constructors in Functional Components With Hooks

Constructors in Functional Components With Hooks

87
Comments 36
8 min read
A Hooks-vs-Classes Report Card

A Hooks-vs-Classes Report Card

46
Comments 20
15 min read
use-custom-hook: Custom React Hook starter

use-custom-hook: Custom React Hook starter

7
Comments 1
1 min read
Creating useEffect in nodejs

Creating useEffect in nodejs

8
Comments
1 min read
Debounce Any Effect by Creating Your Own useDebouncedEffect Hook

Debounce Any Effect by Creating Your Own useDebouncedEffect Hook

56
Comments 3
2 min read
Decluttering React Form Logic

Decluttering React Form Logic

11
Comments
7 min read
Hacking React Hooks: Shared Global State

Hacking React Hooks: Shared Global State

42
Comments 6
7 min read
Using the functional updates pattern with React hooks

Using the functional updates pattern with React hooks

12
Comments
1 min read
Reinventing the Wheel With React Hooks

Reinventing the Wheel With React Hooks

40
Comments 15
10 min read
React Hooks | My Package

React Hooks | My Package

9
Comments 6
2 min read
Avoiding Race Conditions when Fetching Data with React Hooks

Avoiding Race Conditions when Fetching Data with React Hooks

64
Comments 15
3 min read
How to mock React hooks using dependency injection

How to mock React hooks using dependency injection

44
Comments 4
3 min read
Passing Data from Child to Parent with React Hooks

Passing Data from Child to Parent with React Hooks

150
Comments 14
4 min read
react-fluent-form: How to write forms with validation in few steps

react-fluent-form: How to write forms with validation in few steps

22
Comments 1
9 min read
Basic React Hooks using TypeScript - useState, useEffect

Basic React Hooks using TypeScript - useState, useEffect

11
Comments
4 min read
Show/Hide Password on toggle in React Hooks

Show/Hide Password on toggle in React Hooks

65
Comments 7
2 min read
Testing custom Apollo hooks with React Testing Library

Testing custom Apollo hooks with React Testing Library

29
Comments 4
3 min read
How to (really) remove eventListeners in React

How to (really) remove eventListeners in React

43
Comments 8
2 min read
A guide to React Native life cycle hooks

A guide to React Native life cycle hooks

6
Comments
19 min read
Why I detest React Hooks

Why I detest React Hooks

5
Comments 1
3 min read
Cancel your promises when a component unmounts

Cancel your promises when a component unmounts

35
Comments 10
4 min read
loading...