MM
lights

Articles

Brand New Hooks In React!

In this article, we will be looking at new form hooks that were recently added in the React Canary version. What are these hooks? React introduced Three new hooks that is useFormStatus, useActionState, and useOptimistic. Let's understand them one by ...

Shadcn Just Launched New CLI: A Major Update for 2024

Shadcn has just rolled out a new CLI, and it's a game-changer for developers working with modern React frameworks. This update isn't just a minor tweak; it’s a complete rewrite with numerous new features and enhancements that will make building your ...

How to Install Adminer in Fedora 40

In this article, we will learn how to install Adminer in Fedora 40, Let's get started. Prerequisites I assume you already have LAMP installed in your system, If not, then refer: https://www.digitalocean.com/community/tutorials/how-to-install-lamp-lin...

Difference Between Scripting and Programming Languages

Both scripting and programming languages are essential tools in the world of software development. While they might seem similar at first glance, they serve distinct purposes and have different characteristics. Let's delve into the key differences be...

Suspense is Killing Your React App (in a good way)

Hey what's up react folks, since you're here, let me explain what i mean by "Suspense is Killing your application" real quick. Imagine your React app as a slow-moving snail. It's sluggish, frustrating users, and costing you potential customers. Now, ...

React Patterns: Component composition with Hooks

I know the title sounds a bit scary, but trust me, you'll find it very easy once you're done reading this blog! I assure you that you'll understand this pattern without repetition. I'll try to explain this in a Q&A format to make the understanding ve...

The Container and Presentation Pattern

Have you ever built a React application and ended up with components that felt cluttered or hard to understand? You might be mixing presentation logic (how things look) with business logic (how things work). This can make your code harder to maintain...

Compound Component In React

A compound component in React is a design pattern that allows for building complex components out of smaller, simpler components that work together. This pattern is particularly useful when you want to create a flexible and reusable UI component with...

What is CommonJS Module in Javascript?

CommonJS is a module system used in JavaScript to allow developers to organize their code into smaller, reusable pieces called modules. It was designed to be used on the server side with Node.js, though it can also be used on the client side with too...

for vs forEach loop in javascript

In JavaScript, for and forEach are both used for iterating over elements in an array, but they have some key differences in terms of syntax, functionality, and use cases. Here’s a detailed comparison: for Loop Syntax and Structure: The for loop is a...