Rohit Kumar Dwivedi has Published 10 Articles
Rohit Kumar Dwivedi
343 Views
In this article, we are going to learn how to get column names from a table using an SQL query. If you don't know what SQL is, keep reading because everything is covered from scratch. SQL stands for Structured Query Language, which is used to interact with databases. Basically, queries ... Read More
Rohit Kumar Dwivedi
735 Views
In this article, we will learn how to find the 2nd largest value in a column of a table. It’s a pretty common task when working with databases, especially when you need to analyze data. We will explore efficient methods to find the second-largest value using SQL queries, with step-by-step ... Read More
Rohit Kumar Dwivedi
289 Views
In this article, we will learn how to programmatically navigate using React Router. Programmatic navigation enables changing the URL of an application without reloading the page. We can use several approaches to programmatically navigate in a React application using React Router. Approaches to navigate using React Router To programmatically ... Read More
Rohit Kumar Dwivedi
441 Views
Redirecting is one of the vital features in frontend applications like React apps. Moving from one page to another is known as navigation. In React, navigation is important for maintaining a Single Page Application for a better user experience. react-router-dom is a npm package which enables dynamic routing ... Read More
Rohit Kumar Dwivedi
359 Views
Passing data from one component to another is an essential part of building complex React applications. React props and states are fundamental concepts in React. Props stand for properties, which are used for passing data from one component to another, while State is used to manage data within a component. ... Read More
Rohit Kumar Dwivedi
329 Views
In this article, we are going to learn how to iterate on list or collection of data dynamically. However, directly using a loop is not a valid syntax in JSX. It is crucial to understand how to use loops inside React JSX. By iterating on arrays or any collections of ... Read More
Rohit Kumar Dwivedi
191 Views
In this article, we’re going to discuss the differences between the npm and npx. The difference between npm and npx is that npm is a package manager for managing dependencies and npx is a tool that allows you to run Node.js packages directly without installing them. Both are related to ... Read More
Rohit Kumar Dwivedi
331 Views
In this article, we will cover why React 18's useEffect runs twice and how to handle this. If you recently switched your React application to version 18, you might have noticed that useEffect runs twice during component mounting. React 18 introduces a new development-only check called Strict Mode. This new ... Read More
Rohit Kumar Dwivedi
477 Views
In this article, we will learn about the differences between state and prop. props stands for properties and provides the way to pass the data from one component to another while state is like a variable to store data. Props are immutable because it can't be changed while State is ... Read More
Rohit Kumar Dwivedi
344 Views
In this article, we are going to cover the implementation of dynamically showing or hiding elements in React. To understand this concept, you must be familiar with hooks in React. By leveraging hooks like useState, you can toggle and update the state to effectively control the visibility of an element. ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP