Found 198 Articles for React JS

How to use Checkboxes in ReactJS?

Mohit Panchasara
Updated on 09-Mar-2023 12:57:13

16K+ Views

The checkbox allows users to select multiple values in the form. Also, it is useful to take the Boolean response from the users. For example, an Instagram-like button is a kind of checkbox. When users like the post, it shows the filled icon; Otherwise, it shows the border icon. Here, we will learn to handle single and multiple checkboxes in ReactJS. First, we will create the custom checkboxes and then learn to use the checkbox component of Material UI. Create a Custom Checkbox Component in ReactJS We can use the normal HTML input to create a checkbox in ... Read More

How to use Paper Component in ReactJS?

Rushi Javiya
Updated on 07-Mar-2023 11:57:52

1K+ Views

In Material UI, the Paper component is very similar to the card component, and basically, it also creates a card of the required dimensions. The main difference between the Card and Paper components is the ‘Elevation’ prop. The Elevation props allow setting the box shadow for the Paper component to add 3D effects. Syntax Users can follow the syntax below to use the Paper component of Material UI. Example 1 (Basic use of Paper Component) In the example below, we added the Paper component inside the Box component of Material UI. Also, we have set the dimensions ... Read More

How to use Link Component in ReactJS?

Rushi Javiya
Updated on 07-Mar-2023 11:54:14

525 Views

The links are important for any application to navigate different web pages. We can use the tag to create links in the HTML. However, the Material UI library provides the Link component to create a stylish link. Users can execute the below command to install the Material UI library in the React project. npm install @mui/material @emotion/react @emotion/styled Syntax Users should follow the syntax below to use the Link component of Material UI. Link In the above syntax, href takes a link to the targeted web page. Example 1 (Basic Link ... Read More

How to use Grid Component in Material UI?

Rushi Javiya
Updated on 07-Mar-2023 11:41:14

689 Views

The grid means the structure of rows and columns like a table. When we create a table using the HTML tag, we can create every row and column of different dimensions, but the Grid component of the Material Ui library allows us to do so. We can use the Grid component of the Material UI as a container and item. Also, we can adjust the grid automatically according to the dimensions of the device screen. Users first need to install the Material Ui library to use the Grid component in the React project using the below command. ... Read More

How to use Fab Component in Material UI?

Rushi Javiya
Updated on 07-Mar-2023 11:34:32

585 Views

The fab component is a short form of the floating action button. You may have seen the floating action button in many Android applications at the bottom right corner. However, it's not fixed that you need to add the floating action button at the bottom right corner, but it is the most used place. Users can use the Fab component of Material UI to create floating action buttons with different icons. To start with the Material UI, execute the below command in the terminal in the React project directory. npm install @mui/material @emotion/react @emotion/styled Syntax Users can ... Read More

How to create a domain name finder app in ReactJs?

Shubham Vora
Updated on 06-Mar-2023 15:30:16

391 Views

An online application that enables users to look for accessible domain names using keywords or phrases can be called a domain name finder. It is a helpful tool for companies and individuals wishing to register a new domain name for their websites. Users of this software can look up domain names and display the search results along with other details like cost and availability. To build a ReactJs domain name search app, one must first plan the app's structure and decide which features to include. After configuring the development environment, a search field can be added so that users can ... Read More

How to validate Passport Number is ReactJS?

Shubham Vora
Updated on 06-Mar-2023 15:28:32

4K+ Views

Passport number is very sensitive data, and it always requires to validate. For example, you are taking the user’s data for their identification, and you can use the passport number to validate the user’s identity. Sometimes, the user may enter the wrong passport number. However, you must need to use the database to check whether the passport number matches the user’s real passport number. Still, when a user enters the passport number, you should ensure that the user has entered the correct format. This tutorial will teach us various approaches to validating passport numbers in ReactJS. Use the Validator ... Read More

How to validate Octal number in ReactJS?

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

358 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 all characters of the octal number string should be numeric and between 1 to 8. Use the regular expression to validate octal number in ReactJS The best approach to validate the octal number is using the regular expression. We can use the test() method with the regular expression to ensure ... Read More

How to validate a credit card number in ReactJS?

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

3K+ 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, we will learn different approaches to validating credit card numbers. Use the React Creditcard Validator NPM Package The react creditcard validator is an NPM package, allowing us to validate the card number. Whenever a user enters the credit card number, It checks which type of card it is. For ... Read More

How to use TextField Component in Material UI?

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, we can use events and attributes with the TextField component, which we can use with the normal input field component. The main benefit of using the TextField component is its well-designed design. Users can execute the below command in the project directory to install the Material UI library. npm ... Read More

Previous 1 ... 3 4 5 6 7 ... 20 Next
Advertisements