>thedevblog

Personal blog site of @amitkroutthedev

Bun 1.0:All-in-One Toolkit

Bun is an all-in-one JavaScript runtime & toolkit designed for speed, complete with a bundler, test runner, and Node.js-compatible package manager.

Wed, September 13, 2023,
3 min read
Read Blog

Resetting Reducer State in React and Redux for Better State Management

One common issue developers face is the persistence of reducer state in useSelector hooks, causing unnecessary re-renders even when actions like update message and delete message are not called.

Fri, May 26, 2023,
4 min read
Read Blog

How to protect routes for different user roles with restricted access?

In a role-based application, if an authenticated user of a different role tries to access a route that is not permitted, the protection mechanism may be violated.

Tue, April 18, 2023,
3 min read
Read Blog

Building my first VS Code Extension(Code Snippets)

Code snippets are reusable blocks of code that can be inserted into your code editor with a single command or keyboard shortcut. This extension consists of basic code snippets that include commonly used React packages.

Mon, April 10, 2023,
3 min read
Read Blog

Why there can be multiple console output with one console.log() in ReactJS ?

In ReactJS, a single `console.log()` statement can produce multiple outputs in the console because React uses a virtual DOM (Document Object Model) to render and update the user interface. When a `console.log()` statement is executed, it may output multiple elements from the virtual DOM, depending on how the React components are structured and how the code is written.

Sun, December 11, 2022,
2 min read
Read Blog