Want to build a Node.js application with Prisma ORM and PostgreSQL without the hassle of a complex setup? This tutorial will show you how to leverage Docker to get up and running quickly. We’ll create a simple Todo app that demonstrates the core concepts, and you’ll learn patterns you ca…
Recent posts
A Developer’s Guide to Improving Largest Contentful Paint(LCP) for better web performance
Aleksandar Rusev
In recent years, Web Performance has become a critical topic, not only for developers but also for SEO specialists and marketers. Companies are increasingly investing in improving web performance, as it directly impacts Google’s ranking algorithm and, by extension, the visibility of their business…
Autocomplete component with React and Bootstrap
Aleksandar Rusev
Implementing typeahead(autocomplete) functionality used to be quite challeging before the modern front end technologies were introduced.In this tutorial, I will show you how I’ve implemented typeahead feature very quickly with React and Bootstrap. Before we start Aside from React, we will also…
React – how to manage forms and validation with useReducer
Aleksandar Rusev
An essential part of our work as developers is to build forms, that allow our end users to provide input to our applications. There are multiple approaches on how to build and manage forms with React and in this tutorial I want to present my preferable way. Multiple times I’ve seen forms where…
Tabs component with React Hooks
Aleksandar Rusev
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 drillin…
Modal component with Next.js with close on backdrop click
Aleksandar Rusev
This tutorial is a continuation of the previous tutorial, where I created a Modal component in a Next.js 13 application, using the pages router. In the current tutorial, I will enhance it by allowing it to close when the user clicks outside of it. I will refer to this functionality as “close o…
Modal component with Next.js – pages router
Aleksandar Rusev
In this tutorial, I will show you how to create a basic Modal component from scratch in a Next.js application with pages router. Before we start Important: Next v13 with pages router was used for this tutorial . Here is the Github repository with the source code. If you are using an older version of…
How to search for a string in a nested array of objects and keep the nested structure
Aleksandar Rusev
Introduction Let’s imagine that we have a navigation, composed of 3(or more) levels of nesting. Our task is to add an inline search, allowing the user to search for a keyword in the navigation but, at the same time, we need to keep displaying the hierarchical structure of the menu, so that the…
When to use type vs. interface in TypeScript?
Aleksandar Rusev
In this short article, I will guide you through the decision process for how to decide whether to use type or interface when using TypeScript. For this purpose I have created a table, which clearly shows what the main differences between type and interface are. The table will help you better underst…