Shubham Vora has Published 962 Articles

How to validate Octal number in ReactJS?

Shubham Vora

Shubham Vora

Updated on 06-Mar-2023 15:09:07

408 Views

There are various types of number representation available such as decimal, hexadecimal, binary, octal, etc. The octal number is a number value by taking the base-8, and it accepts only numbers between 0 to 8. Here, we will learn to validate the octal number. We need to check that ... Read More

How to validate a credit card number in ReactJS?

Shubham Vora

Shubham Vora

Updated on 06-Mar-2023 15:07:40

4K+ Views

When a bank issue any credit or debit card number, they don’t generate the random numbers for the card. They follow some rules to issue a new card number. They first validate the card number using the Luhn algorithm and check if it starts with a particular number. Here, ... Read More

How to use Typescript with native ES6 Promises?

Shubham Vora

Shubham Vora

Updated on 06-Mar-2023 15:04:56

2K+ Views

In the ES6 version of ECMAScript, promises are introduced for the first time. To use the ES6 promises in the TypeScript project, users need to modify the tsconfig.json file. Add the below code inside the ‘compilerOptions’ object. { "compilerOptions": { ... Read More

How to use TextField Component in Material UI?

Shubham Vora

Shubham Vora

Updated on 06-Mar-2023 15:00:03

3K+ Views

The Material UI library provides various react components, and TextField is one of them. We can use the TextField component to take user input and use it inside the form. Whatever operation we can perform with the HTML input field, we can also perform with the TextField component. For example, ... Read More

How to use Slider Component in Material UI?

Shubham Vora

Shubham Vora

Updated on 06-Mar-2023 14:57:46

1K+ Views

The slider is an important feature for any application to improve the UX of the application. For example, if you want to allow users to choose any value between 1 to 100, it would be better to use the slider than the custom number input field. The Material UI ... Read More

How to use Regex to get the string between curly braces using JavaScript?

Shubham Vora

Shubham Vora

Updated on 06-Mar-2023 14:52:37

5K+ Views

We can create a regular expression so it can find all the substrings between the curly braces. After that, we can use the exec() or match() method to extract the matching substring. In this tutorial, we will learn to use a regular expression to get the string between curly ... Read More

How to use Radio Component in Material UI?

Shubham Vora

Shubham Vora

Updated on 06-Mar-2023 14:22:09

2K+ Views

The radio button is used to allow users to choose any one value among a group of values. For example, the best use case of the radio button is allowing users to choose a gender in the form. The material UI provides the pre-designed Radio component, which we can ... Read More

How to use Particle.js in JavaScript project?

Shubham Vora

Shubham Vora

Updated on 06-Mar-2023 12:43:35

2K+ Views

As the name suggests, the Particle.js library allows us to add particles to a particular HTML element. Also, we can change the shape of the particles number of particles in the div. We can add animation or motion to particles using the Particle.js library. Here, we will learn to change ... Read More

How to sorting an array without using loops in Node.js?

Shubham Vora

Shubham Vora

Updated on 06-Mar-2023 12:38:44

896 Views

In Node.js, a built-in sort() method is available to sort an array without a headache. However, as a beginner to learn how the sort() method works internally, users should learn various sorting algorithms. In this tutorial, we will learn a different algorithm to sort an array without using loops ... Read More

How to create a dynamic search box in ReactJS?

Shubham Vora

Shubham Vora

Updated on 06-Mar-2023 12:02:41

3K+ Views

Search is one of the most important functionalities of the website. It allows users to filter products and search for specific things on the website, reducing the time users find particular things on the website. For example, you can see a search bar at the top of this page. ... Read More

Advertisements