Hi, I'm Rajiv! Welcome to my digital garden where I share my knowledge about software development, problem-solving, and building better applications.
In modern web applications, modals are an essential UI element for displaying content without navigating away from the current page. This article demonstrates how to create a modal route in React Router using the Outlet component, I hope you find it helpful.
Parallel Routes can be used together with Intercepting Routes to create modals that support deep linking. In this article, we'll learn how to create a modal route in Next.js. and also we'll see the live demo example.
SVGs are great way to create vector graphics for the web. But how do you use it in React? Well, it's actually quite simple. So today, I'm going to show you how to use SVG as a React component in your project and we will also see how to use it in a Next.js or vite project.