Blog/React

React Articles

Browse all articles tagged with “React

Product
#React

Using React Redux Hooks: useSelector() and useDispatch()

React Redux useSelector is a custom hook introduced in React Redux v7.1.0. Combined with other custom hooks such as useDispatch, it enables developers to manage state in Redux while writing fast, performant, and easy-to-read code in as few lines as possible. In this article, you will explore useSele

Divine Orji

Jun 3, 2022

Product
#React

Lazy Loading React Components With React.lazy & Suspense

React.lazy() is a React component that allows you to load components asynchronously. The React.lazy API is a new feature added to React when React v16.6 was released, it offered a straightforward approach to lazy-loading and code-splitting our React components.

Chidume

Jun 2, 2022

Product
#React

Using componentDidUpdate() in React — Developer's Guide

The componentDidUpdate() method is an update method that is invoked after the componentDidMount() method and this happens immediately after an update occurs and not for the initial render. This article takes a deep look at componentDidUpdate() which is one of the methods in the Updating phase.

Fortune Ikechi

Jun 2, 2022

Product
#React

A Complete Guide to Making HTTP Requests in Node.js

This article will discuss more on HTTP, HTTP requests, ways to make this requests in Node and how we can handle errors.

Victor Jonah

Mar 28, 2022

Product
#React

Using useCallback Hook in React — A Developer's Guide

React has so many in-built hooks that allow functional components to plug into the lifecycle of the component and perform different operations. There’s the useState hook, useEffect hook, useLayoutEffect hook and many more. In this article, we’ll be looking at the useCallback hook. We’ll learn about

Dillion Megida

Mar 25, 2022

Product
#React

Understanding React Fragments (With Examples)

React Fragment is a React component introduced in React v16.2.0. This component lets you group (or rather, “parent”) a list of React components without adding an extra node to the DOM. At the time of writing, this component only accepts on prop—the key prop.

Molly Floyd

Mar 23, 2022

Product
#React

useLayoutEffect vs useEffect - The Difference

Sometimes we want to perform operations outside the scope of this data flow process, like interacting with an API. These operations are called side effects. In this article, we will explore how to handle side effects in React using a hook called useLayoutEffect.

Divine Orji

Mar 23, 2022

Product
#React

React Refs: All You Need To Know About It

React ref provides a means of accessing DOM elements in this article you will learn how and when to use refs, and how refs can be useful outside the DOM.

Elijah

Mar 16, 2022

Product
#React

React Context API: What is it and How Does it Work?

This post explores the new react context API. We will explore why we need react context, how it works high-level with example use cases and at what point should React developers reach out to context API to solve their problems. Our sample use case will then show you how to use React context with som

Alexander Nnakwue

Mar 15, 2022

Product
#React

A Complete Guide to Data Fetching with React Suspense

Suspense refers to React's new ability to “suspend” rendering while components are waiting for something and display a loading indicator. React suspense allows you to write cleaner React components that are performant and are easy to maintain. This article explains what React Suspense is and How it

Eze Sunday

Mar 9, 2022

Product
#React

Understanding useMemo Hook in React [Complete Guide]

The useMemo hook is used for memoizing values in React Applications. useMemo memoizes computed values in a React component so that in cases of a component re-render, those values will not be recomputed. This article will teach you what a useMemo hook is and how to use it.

Dillion Megida

Mar 9, 2022

Product
#React

React useReducer Hook: The Ultimate Guide (With Examples)

State management means keeping track of how our data changes over time. In React, we can manage state with hooks or using an external state management library like Redux. In this article, we will explore a hook called useReducer and learn about its capabilities for state management.

Divine Orji

Mar 3, 2022

Product
#React

React Redux - A Complete Guide With Examples & Use Cases

Redux is a state management library for JavaScript apps. In this article, we will walk over React-Redux and how to use it. We will use it to simplify the complex state management of membership and authentication flows.

Tamal Chowdhury

Mar 3, 2022

Product
#React

Using & Building React Custom Hooks - A Developer's Guide

In this article, we’ll understand what React Custom Hooks are, the benefits of using them and when to use them. We’ll also learn how to build two custom hooks and show them in use.

Dillion Megida

Mar 1, 2022