Rohit Kumar Dwivedi has Published 12 Articles

SQL Query to Get Column Names From a Table

Rohit Kumar Dwivedi

Rohit Kumar Dwivedi

Updated on 28-Jan-2025 12:01:49

34 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

Query to find 2nd largest value in a column in Table

Rohit Kumar Dwivedi

Rohit Kumar Dwivedi

Updated on 24-Jan-2025 13:27:38

111 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

How To Copy Text To The Clipboard In ReactJS?

Rohit Kumar Dwivedi

Rohit Kumar Dwivedi

Updated on 23-Dec-2024 09:22:29

118 Views

In this article, we will learn how to copy text to the clipboard in ReactJS. There are two most commonly used methods: the copy-to-clipboard package and the Clipboard API. The copy-to-clipboard package provides a copy() function that allows us to copy text. The Clipboard API is a web browser API ... Read More

How to programmatically navigate using React Router?

Rohit Kumar Dwivedi

Rohit Kumar Dwivedi

Updated on 20-Dec-2024 09:41:22

74 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

How to Redirect to Another Page in ReactJS?

Rohit Kumar Dwivedi

Rohit Kumar Dwivedi

Updated on 19-Dec-2024 09:38:16

161 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

How to pass data from child component to its parent in ReactJS?

Rohit Kumar Dwivedi

Rohit Kumar Dwivedi

Updated on 19-Dec-2024 09:35:33

120 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

How to Loop inside React JSX?

Rohit Kumar Dwivedi

Rohit Kumar Dwivedi

Updated on 17-Dec-2024 11:26:45

72 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

Difference between npx and npm

Rohit Kumar Dwivedi

Rohit Kumar Dwivedi

Updated on 17-Dec-2024 10:21:57

67 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

How to Fix React useEffect running twice in React 18?

Rohit Kumar Dwivedi

Rohit Kumar Dwivedi

Updated on 17-Dec-2024 10:10:04

110 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

Difference between state and props in React

Rohit Kumar Dwivedi

Rohit Kumar Dwivedi

Updated on 17-Dec-2024 09:49:15

117 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

Advertisements