DEV Community

# hooks

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
6 use cases of the useEffect ReactJS hook

6 use cases of the useEffect ReactJS hook

414
Comments 8
8 min read
Five common mistakes writing react components (with hooks) in 2020

Five common mistakes writing react components (with hooks) in 2020

339
Comments 15
7 min read
How to write 90% cleaner code with Hooks 🎣

How to write 90% cleaner code with Hooks 🎣

327
Comments 14
7 min read
5 use cases of the useState ReactJS hook

5 use cases of the useState ReactJS hook

304
Comments 7
3 min read
Adios Redux: using React hooks and Context effectively

Adios Redux: using React hooks and Context effectively

285
Comments 19
9 min read
Protected Routes with React Function Components

Protected Routes with React Function Components

237
Comments 24
11 min read
React hooks on steroids

React hooks on steroids

228
Comments 5
4 min read
React Hooks Best Practices in 2022

React Hooks Best Practices in 2022

213
Comments 10
6 min read
Let's learn React Hooks and Context API by building a Recipe Search App

Let's learn React Hooks and Context API by building a Recipe Search App

213
Comments 4
10 min read
React Hooks: useMemo

React Hooks: useMemo

196
Comments 3
2 min read
5 ways that will change how you write React hooks

5 ways that will change how you write React hooks

191
Comments 6
3 min read
React Redux with hooks

React Redux with hooks

178
Comments 13
3 min read
How to create custom Hooks in React

How to create custom Hooks in React

177
Comments 1
4 min read
Easy Lazy Loading with React & Intersection Observer API

Easy Lazy Loading with React & Intersection Observer API

172
Comments 4
3 min read
useRef or useState, which is better?

useRef or useState, which is better?

163
Comments 15
2 min read
React Query - A practical example.

React Query - A practical example.

163
Comments 7
4 min read
React Is Eating Itself

React Is Eating Itself

160
Comments 52
11 min read
React-query series Part 1: Basic react-query setup

React-query series Part 1: Basic react-query setup

154
Comments
3 min read
Constructors in Functional Components With Hooks

Constructors in Functional Components With Hooks

148
Comments 36
8 min read
Create a signature pad in React

Create a signature pad in React

146
Comments 20
6 min read
Passing Data from Child to Parent with React Hooks

Passing Data from Child to Parent with React Hooks

146
Comments 14
4 min read
Understanding React hooks

Understanding React hooks

144
Comments 5
4 min read
RxJS with React

RxJS with React

140
Comments 9
6 min read
Building Custom React Hooks

Building Custom React Hooks

138
Comments 1
5 min read
React useContext and useReducer Hooks.

React useContext and useReducer Hooks.

134
Comments 10
3 min read
A small collection of useful React hooks.

A small collection of useful React hooks.

132
Comments 8
1 min read
React-query series Part 3: Data fetching with the useQuery hook.

React-query series Part 3: Data fetching with the useQuery hook.

123
Comments 2
5 min read
Most Awesome Hooks for your React project

Most Awesome Hooks for your React project

121
Comments 5
3 min read
React hooks you should know about 🔥🔥🔥

React hooks you should know about 🔥🔥🔥

117
Comments 7
6 min read
Mutable and immutable useRef semantics with React & TypeScript

Mutable and immutable useRef semantics with React & TypeScript

116
Comments 11
3 min read
"useSWR" - React Hooks for Remote Data Fetching

"useSWR" - React Hooks for Remote Data Fetching

104
Comments 12
3 min read
Testing of a Custom React Hook for Fetching Data with Axios

Testing of a Custom React Hook for Fetching Data with Axios

102
Comments 4
6 min read
Your next React Modal with your own "useModal" Hook & Context API.

Your next React Modal with your own "useModal" Hook & Context API.

99
Comments 13
5 min read
Building Infinite scroll in React with hooks and Intersection Observer

Building Infinite scroll in React with hooks and Intersection Observer

99
Comments 6
10 min read
React Context and Hooks: An Open Source Project to Understand How They Work

React Context and Hooks: An Open Source Project to Understand How They Work

97
Comments
11 min read
4 Ways to useEffect()

4 Ways to useEffect()

96
Comments 1
2 min read
Creating a weather app with Reactjs - Part 1

Creating a weather app with Reactjs - Part 1

94
Comments
3 min read
Redux Data Flow and React Component Life Cycle

Redux Data Flow and React Component Life Cycle

94
Comments
5 min read
Clean Up Async Requests in `useEffect` Hooks

Clean Up Async Requests in `useEffect` Hooks

92
Comments 55
4 min read
Illustrated Notes on Custom React Hooks

Illustrated Notes on Custom React Hooks

89
Comments 4
3 min read
An easy scroll box implementation

An easy scroll box implementation

88
Comments 7
8 min read
Beginners Guide To React Hooks : Getting Started With React Hooks🔥🔥

Beginners Guide To React Hooks : Getting Started With React Hooks🔥🔥

86
Comments 3
4 min read
How to check commit message and branch name with git hooks without any new installation

How to check commit message and branch name with git hooks without any new installation

85
Comments 8
2 min read
Understanding React Hooks by building a simple App

Understanding React Hooks by building a simple App

83
Comments 2
4 min read
Testing React Hook State Changes

Testing React Hook State Changes

82
Comments 23
2 min read
Getting started with state management using useReducer and Context

Getting started with state management using useReducer and Context

77
Comments 11
7 min read
Working with Forms in React without libraries

Working with Forms in React without libraries

75
Comments
5 min read
Creating a deferred promise hook in React

Creating a deferred promise hook in React

72
Comments 2
5 min read
Synchronous State With React Hooks

Synchronous State With React Hooks

71
Comments 16
8 min read
the correct way to fetch data with react hooks

the correct way to fetch data with react hooks

71
Comments 12
3 min read
Building a Movie App with React Hooks and Cloudflare Workers

Building a Movie App with React Hooks and Cloudflare Workers

70
Comments 3
11 min read
Creating a custom React hook to get the window's dimensions in Next.js

Creating a custom React hook to get the window's dimensions in Next.js

70
Comments 4
2 min read
Autosaving with React Hooks

Autosaving with React Hooks

69
Comments 5
3 min read
I replaced useState hook with custom one

I replaced useState hook with custom one

68
Comments 9
5 min read
Simple React Shopping Cart

Simple React Shopping Cart

68
Comments 9
1 min read
4 custom react hooks that will make your development easier

4 custom react hooks that will make your development easier

67
Comments
2 min read
Abstracting with react hooks on LSD

Abstracting with react hooks on LSD

66
Comments 32
3 min read
All of Your React Utility Hooks in One Place

All of Your React Utility Hooks in One Place

65
Comments 4
3 min read
Adding dark mode to your React app with hooks, media queries and CSS variables

Adding dark mode to your React app with hooks, media queries and CSS variables

65
Comments 1
10 min read
The best Couple: useContext + useReducer !

The best Couple: useContext + useReducer !

64
Comments 4
2 min read
loading...