DEV Community

# hooks

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
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

21
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

60
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
Convert to React Hooks in 6 easy steps

Convert to React Hooks in 6 easy steps

12
Comments
11 min read
Plaid Inspired Inputs with React Hooks and Styled Components

Plaid Inspired Inputs with React Hooks and Styled Components

16
Comments 2
8 min read
I don't like React Hooks

I don't like React Hooks

6
Comments 4
2 min read
HOW TO WRITE MAINTAINABLE CODE

HOW TO WRITE MAINTAINABLE CODE

10
Comments
2 min read
Understanding how to use Redux using React Hooks in 5 minutes

Understanding how to use Redux using React Hooks in 5 minutes

9
Comments
2 min read
How To Create pre-commit Hooks For Git

How To Create pre-commit Hooks For Git

7
Comments
5 min read
A better way to place your Cage

A better way to place your Cage

7
Comments
1 min read
Micro-Lesson: Shiny Object Syndrome and the Law of the Instrument

Micro-Lesson: Shiny Object Syndrome and the Law of the Instrument

5
Comments
1 min read
React Redux with hooks

React Redux with hooks

178
Comments 13
3 min read
Building a SPA with React and Okta for authentication.

Building a SPA with React and Okta for authentication.

30
Comments 3
10 min read
React Component Lifecycle Events using React Hooks

React Component Lifecycle Events using React Hooks

20
Comments
1 min read
How to optimize shared states in React

How to optimize shared states in React

19
Comments
4 min read
Creating a form validation hook for React apps

Creating a form validation hook for React apps

36
Comments 1
20 min read
using useEffect effectively

using useEffect effectively

42
Comments
3 min read
Stale State in React Hooks

Stale State in React Hooks

10
Comments
2 min read
Measuring Text on React with Hooks

Measuring Text on React with Hooks

17
Comments
2 min read
useEffect()-React Hooks(P2)

useEffect()-React Hooks(P2)

16
Comments
1 min read
Complete useRef() hook with live code examples

Complete useRef() hook with live code examples

14
Comments
3 min read
React Is Eating Itself

React Is Eating Itself

160
Comments 52
11 min read
Your next React Modal with your own "useModal" Hook & Context API.

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

108
Comments 13
5 min read
React Portals: Flexible Modal Implementation

React Portals: Flexible Modal Implementation

23
Comments 2
2 min read
useState() React Hooks(P1)

useState() React Hooks(P1)

17
Comments 7
1 min read
Using Auth0 Hooks to store user information

Using Auth0 Hooks to store user information

15
Comments
3 min read
Get hooked on Hooks.

Get hooked on Hooks.

6
Comments 1
2 min read
useHover hooked a fool. The fool was me

useHover hooked a fool. The fool was me

8
Comments
3 min read
The useMemo() hook in ReactJS has a short memory

The useMemo() hook in ReactJS has a short memory

7
Comments
1 min read
React hooks with TypeScript

React hooks with TypeScript

32
Comments 1
3 min read
Git Hooks, Git Gud.

Git Hooks, Git Gud.

7
Comments
3 min read
React: Create component inside a component (?)

React: Create component inside a component (?)

24
Comments 8
2 min read
Quick Introduction to React Custom Hooks With Dropdown Selection

Quick Introduction to React Custom Hooks With Dropdown Selection

29
Comments 6
5 min read
Using Chart.js in a function component with React hooks

Using Chart.js in a function component with React hooks

63
Comments 5
2 min read
Let’s Build: Workout tracker with React and Firebase part 1: project setup

Let’s Build: Workout tracker with React and Firebase part 1: project setup

38
Comments 1
2 min read
Let’s Build: Workout tracker with React and Firebase part 3: custom calendar

Let’s Build: Workout tracker with React and Firebase part 3: custom calendar

14
Comments 3
8 min read
Let’s Build: Workout tracker with React and Firebase part 2: authentication

Let’s Build: Workout tracker with React and Firebase part 2: authentication

17
Comments
7 min read
An easy scroll box implementation

An easy scroll box implementation

88
Comments 7
8 min read
Beware of these traps on state and props management using react-hooks

Beware of these traps on state and props management using react-hooks

11
Comments 5
2 min read
Is it ever OK to set state directly? A setState cheat sheet

Is it ever OK to set state directly? A setState cheat sheet

7
Comments
3 min read
A guide to stale-while-revalidate data fetching with React Hooks

A guide to stale-while-revalidate data fetching with React Hooks

15
Comments
16 min read
Few Tips to Optimizing Performance of React Project

Few Tips to Optimizing Performance of React Project

52
Comments 2
5 min read
Redux Data Flow and React Component Life Cycle

Redux Data Flow and React Component Life Cycle

104
Comments
5 min read
Protected Routes with React Function Components

Protected Routes with React Function Components

238
Comments 24
11 min read
Turning your React Component into a Finite State Machine With useReducer

Turning your React Component into a Finite State Machine With useReducer

39
Comments 4
4 min read
Sanely Testing React Hooks

Sanely Testing React Hooks

13
Comments 4
4 min read
Using React Hooks With Apollo

Using React Hooks With Apollo

16
Comments
4 min read
React Pitfalls: useState initialization

React Pitfalls: useState initialization

10
Comments 2
4 min read
Programmatically positioning elements with React Hooks

Programmatically positioning elements with React Hooks

59
Comments
2 min read
Simplest React Hook component for PWA install button

Simplest React Hook component for PWA install button

34
Comments 9
1 min read
Autosaving with React Hooks

Autosaving with React Hooks

69
Comments 5
3 min read
loading...