Mohit Panchasara has Published 87 Articles

How to use Container Component in ReactJS?

Mohit Panchasara

Mohit Panchasara

Updated on 09-Mar-2023 13:34:20

2K+ Views

The container component creates a container on the web page like a box. Also, we can set the height of the container according to the height of the inside content. Furthermore, we can set the variable width for the Container component. Basically, we can use the Container to create ... Read More

How to use Checkboxes in ReactJS?

Mohit Panchasara

Mohit Panchasara

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

17K+ 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. ... Read More

How to upload file without form using JavaScript?

Mohit Panchasara

Mohit Panchasara

Updated on 09-Mar-2023 12:55:06

5K+ Views

Sometimes, developers may require to upload a file without using the form in JavaScript. Generally, we create a form to get the data and files from the users, but in this tutorial, we will learn to get the file from users without a form and send it to the backend. ... Read More

How to uniquely identify computers visiting web site in JavaScript?

Mohit Panchasara

Mohit Panchasara

Updated on 09-Mar-2023 12:52:49

479 Views

Whenever we create any application or website, we require to identify computers visiting the website uniquely. There are a lot of benefits to uniquely identifying computers. For example, you are providing some services to your users. By uniquely identifying the computer, you can give free service for a trial ... Read More

How to Understand Recursion in JavaScript?

Mohit Panchasara

Mohit Panchasara

Updated on 09-Mar-2023 12:49:13

136 Views

What is Recursion? The word recursion came from the recurring, meaning comes back to again and again. The recursion function is the function calling itself again and again by changing the input step by step. Here, changing the input by one step means decreasing or increasing the input by one ... Read More

How to test a value x against predicate function and returns fn(x) or x in JavaScript?

Mohit Panchasara

Mohit Panchasara

Updated on 09-Mar-2023 12:45:01

62 Views

Testing the value x against the predicate function means checking if x is evaluated to be valid for a particular condition. If x is following the particular condition, we need to perform some operation on the x using any function named ‘fn’ and passing it as a function parameter. Otherwise, ... Read More

How to terminate a script in JavaScript?

Mohit Panchasara

Mohit Panchasara

Updated on 09-Mar-2023 12:32:39

11K+ Views

The termination of the script means that it stops executing the JavaScript code. In some emergency cases, developers requires to abort the execution of JavaScript code in the middle while the script is executing. Also, we can use the if-else statement to decide when to terminate the script execution ... Read More

How to stop event propagation with inline onclick attribute in JavaScript?

Mohit Panchasara

Mohit Panchasara

Updated on 09-Mar-2023 12:22:53

2K+ Views

Sometimes, we require adding the same events on the nested HTML elements. For example, we have two divs, one is parent div, and another is child div. Now, we need to add the onclick event on the parent div and child div and execute the different functions when users click ... Read More

How to create Price Range Selector in ReactJS?

Mohit Panchasara

Mohit Panchasara

Updated on 16-Feb-2023 18:43:37

5K+ Views

The price range selector allows us to select two values representing the range. Sometimes, we require to create a range slider to allow users to select a range. For example, we can allow users to select a minimum and maximum price using the price range selector. We can also show ... Read More

How to create a Password Checklist in ReactJS?

Mohit Panchasara

Mohit Panchasara

Updated on 16-Feb-2023 18:39:51

5K+ Views

Nowadays, applications use a one-time password or magic link for authentication, but we can’t ignore the authentication using the username and password. Whenever we allow users to register with a username and password, we should ensure that the password users have entered is strong. So, it can be unbreakable ... Read More

Advertisements