Home/Chidi Orji
Author
COChidi Orji

Chidi Orji

8 articles by Chidi Orji.

Frontend — Managing Long-Running Tasks In A React App With Web Workers — Smashing Magazine

Managing Long-Running Tasks In A React App With Web Workers — Smashing Magazine

In this tutorial, Chidi Orji is going to show you how to use the [Web Worker API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) to manage time-consuming and UI-blocking tasks in a JavaScript app by building a sample web app that leverages Web Workers. Finally, we’ll end the article by transferring everything to a React application. If you need more insights into this topic, Chi

COChidi OrjiChidi Orji·October 15, 2020Frontend
Frontend — How To Test Your React Apps With The React Testing Library — Smashing Magazine

How To Test Your React Apps With The React Testing Library — Smashing Magazine

Testing gives confidence in written code. In the context of this article, ‘testing’ means ‘automated testing’. Without automated testing, it is significantly harder to ensure the quality of a web application of significant complexity. Fails caused by automated testing may lead to more bugs in production. In this article, Chidi Orji is going to show you how React developers can quickly start testin

COChidi OrjiChidi Orji·July 3, 2020Frontend
Frontend — Firebase Push Notifications In React — Smashing Magazine

Firebase Push Notifications In React — Smashing Magazine

In this tutorial, Chidi Orji will show you how to work with Firebase push notifications in the backend and frontend. We’ll set up the notifications system with an Express back-end server. Afterwards, you’ll listen for the notifications in a React front-end app. You will implement the backend first, then move on to the frontend. In that way, you can use whichever section appeals more to you. So let

COChidi OrjiChidi Orji·June 29, 2020Frontend
Frontend — Better Reducers With Immer — Smashing Magazine

Better Reducers With Immer — Smashing Magazine

In this article, we’re going to learn how to use Immer to write reducers. When working with React, we maintain a lot of state. To make updates to our state, we need to write a lot of reducers. Manually writing reducers results in bloated code where we have to touch almost every part of our state. This is tedious and error-prone. In this article, Chidi Orjil going to see how Immer brings more simpl

COChidi OrjiChidi Orji·June 16, 2020Frontend
Frontend — React Error Handling And Reporting With Error Boundary And Sentry — Smashing Magazine

React Error Handling And Reporting With Error Boundary And Sentry — Smashing Magazine

In this article, Chidi Orji will explore the concept of error boundaries in a React application. You’ll work through an example app to see how we can use error boundaries to deliver a better app experience. Finally, you’ll integrate Sentry into our error boundary for realtime error reporting. The only prerequisite is that you have some familiarity with React class components. Let’s dig in!

COChidi OrjiChidi Orji·June 1, 2020Frontend
Frontend — Implementing Infinite Scroll And Image Lazy Loading In React — Smashing Magazine

Implementing Infinite Scroll And Image Lazy Loading In React — Smashing Magazine

HTML is getting better at providing nice APIs for implementing cool features. In this tutorial, Chidi Orji is going to show you how to use the `HTML` `Intersection Observer` API to implement infinite scrolling and image lazy loading in a React functional component. In the process, we’ll learn how to use some of React’s hooks and how to create Custom Hooks. Let’s get started!

COChidi OrjiChidi Orji·March 16, 2020Frontend
Frontend — How To Use The HTML Drag-And-Drop API In React — Smashing Magazine

How To Use The HTML Drag-And-Drop API In React — Smashing Magazine

In this tutorial, Chidi Orji will show you how to build a React drag-and-drop component for file and image uploads. In the process, we’ll learn about the HTML drag-and-drop API. We will also learn how to use the useReducer hook for managing state in a React functional component.

COChidi OrjiChidi Orji·February 19, 2020Frontend