How to Use Angular Components in React

Angular Components in React

As a developer, I’ve often hit a specific roadblock. Sometimes, a specialized team builds a complex dashboard in Angular, and you need that exact functionality in your React-based consumer app. I remember once needing to port a complex mortgage calculator built in Angular into a new React portal for a California-based lender. That is when … Read more >>

React Controlled Component

React Controlled Component

I’ve found that managing form data is one of the most frequent tasks you’ll face. In the early days, I struggled with keeping the UI in sync with the underlying data, but then I mastered controlled components. If you have ever wondered how to handle user input efficiently in a React application, you are in … Read more >>

React Pass Function to Child Component

React Pass Function to Child Component

In React, data usually flows downwards from a parent component to a child component through props. While passing strings or numbers is easy, there are many cases where you need to pass a function to a child component. I have spent over eight years building complex React applications, and I can tell you that mastering … Read more >>

How to Convert React Component to TypeScript

React Component to TypeScript

If you have been building React applications for a while, you know that JavaScript is incredibly flexible. However, that flexibility often leads to “undefined is not a function” errors right when you least expect them. I have spent over eight years architecting React apps, and I can tell you from experience that moving to TypeScript … Read more >>

How to Use a For Loop in React Functional Components

For Loop in React Functional Components

If you are coming from a traditional programming background, your first instinct is likely to reach for a for loop when you need to repeat a task. In React, things work a little differently because we are often dealing with JSX, which requires us to return values that can be rendered to the screen. Over … Read more >>

How to Create a Protected Route in React

Protected Route in React

In my eight years of developing React applications, one of the most frequent tasks I’ve faced is managing user access. Whether it is a private dashboard for a US-based fintech app or a secure medical portal, you need a way to keep unauthorized users out. In this tutorial, I will show you exactly how I … Read more >>

How to Use Await in React Components

Await in React Components

In my experience of building React applications, one of the most common hurdles I see developers face is handling asynchronous data. It sounds simple enough: you want to fetch some data and show it on the screen. But if you’ve ever tried to put an await directly inside your functional component, you know things get … Read more >>

React Toggle Switch Component

React Toggle Switch Component

I have spent some years building complex web applications, and if there is one UI element I get asked for constantly, it is the toggle switch. Whether you are building a settings page for a SaaS platform or a dark mode trigger for a blog, a well-designed toggle switch is essential. In this tutorial, I … Read more >>

Mantine React Component Library

Mantine React Component Library

Have you ever spent hours trying to get a simple modal or a multi-select dropdown to look just right in React? I have been developing React applications for years and have tried almost every UI library out there, from Material UI to Tailwind. A few months ago, I discovered Mantine, and it completely changed how … Read more >>

Custom Component Mapping in React Markdown

React Custom Component Mapping in Markdown

Markdown is the industry standard for writing content quickly, but standard HTML output is often too boring for modern web applications. I have spent years building documentation portals and blogs where I needed my Markdown to do more than just display bold text and headers. If you are using react-markdown, you probably already know it … Read more >>