Tabs component with React Hooks

In this tutorial, we will create custom reusable Tabs component using best practices and no external libraries. In the end, we should be able to implement our Tabs component in the following way: Create the Context Create a fresh React app: We will use the Context API, in order to avoid prop drilling and make…

Read More

Custom confirm dialog with React Hooks and the Context

The confirm dialogs are used in almost every application. When working on internal apps, the developers tend to get lazy and use the browser’s ugly built-in confirm dialog. The fact that you’re reading this article suggests that you’re looking to replace it with something more sophisticated. Let’s create a custom confirm dialog, using React Hooks,…

Read More

Step progress bar with pure CSS

In this short blog post, I will show you how to create a custom step progress bar with CSS, which can be easily integrated into every application. Let’s first start with the easy part – the HTML. As you see, the stepper-item element has 2 additional classes – active and completed. In our application, you…

Read More

Styled components – Pros and Cons

In this blog post I am going to express my opinion and share my experience with the Styled components library. For a long time, there have been many discussions about the “proper” way to handle styling in React applications. In the beginning, the most common way to tackle styling was the CSS Modules. Then, due…

Read More