Shubham Vora has Published 962 Articles

How to create own Ajax functionality?

Shubham Vora

Shubham Vora

Updated on 28-Feb-2023 16:38:20

226 Views

An Ajax (Asynchronous JavaScript and XML) request is an HTTP request made using JavaScript, typically with the XMLHttpRequest object, to exchange data with a server and update a specific part of a web page without requiring full page refresh. There are two ways to create own Ajax functionality. You can ... Read More

How to show Page Loading div until the page has finished loading?

Shubham Vora

Shubham Vora

Updated on 28-Feb-2023 16:36:29

9K+ Views

Rather than showing the whole white or black screen while loading the page, it is better to show the loading indicator, which also improves the UX of the application. Nowadays, there are some libraries available to show loading indicators. However, we can use HTML and CSS to create a customized ... Read More

How to serialize a cookie name-value pair into a Set Cookie header string in JavaScript?

Shubham Vora

Shubham Vora

Updated on 28-Feb-2023 16:34:55

795 Views

The cookie allows us to store users’ data in the web browser for quick response. For example, when a user opens the profile page in any web application, the web page receives the data from the server. The server also sends the cookies containing the data to store in the ... Read More

How to use the handleChange() function in react component?

Shubham Vora

Shubham Vora

Updated on 27-Feb-2023 12:17:09

6K+ Views

The handleChange() is not a built-in function in the React, but as its name suggests, we can define it to handle changes that users made in the input. In the react, we need to handle the input whenever a user enters some value in the input field to make it ... Read More

How to use AppBar Component in Material UI?

Shubham Vora

Shubham Vora

Updated on 27-Feb-2023 12:16:00

2K+ Views

The Material UI is a library containing various components with different styles and responsive designs. For example, Material UI contains an AppBar component, which we can directly import into the React component and use as a child component of other components. Also, the Material UI library contains different components like ... Read More

How to set focus on an input field after rendering in ReactJS?

Shubham Vora

Shubham Vora

Updated on 27-Feb-2023 12:07:59

9K+ Views

While working with the forms in React, sometimes we may require to focus on any input. For example, we want to enable the submit button only if the user enters some text in the input field. In such cases, we can focus on the input so that users know that ... Read More

How to send one or more files to an API using axios in ReactJS?

Shubham Vora

Shubham Vora

Updated on 27-Feb-2023 12:05:46

1K+ Views

ReactJS is a frontend library, so we can use it to create web pages. It’s natural to show data in real-time applications, and the backend manages it. So, whenever React needs data to show on the web page, it gets it from the backend by making API calls. Sometimes, we ... Read More

How to create Menu Item Component in ReactJS?

Shubham Vora

Shubham Vora

Updated on 27-Feb-2023 12:01:53

7K+ Views

The Menu item component shows users various menu options, and they can select any option from the menu item component. The menu item component in React Js is similar to the element in HTML, or we can say it is a dropdown menu. Also, menu components contain a submenu ... Read More

How to create Instagram Like button in ReactJS?

Shubham Vora

Shubham Vora

Updated on 27-Feb-2023 11:58:18

2K+ Views

Most of all, you have used Instagram and have looked at the Like button given below every post. There are two things to notice about Instagram Like button: one is its shape is a heart shape which we need to create, and another is it fills up with red colour ... Read More

Window Navigator in TypeScript

Shubham Vora

Shubham Vora

Updated on 21-Feb-2023 15:54:16

2K+ Views

The Window object, known as the Global TypeScript object, represents the current web page in a browser window. The location, history, and document of the current page, as well as other methods and attributes, can all be accessed and controlled using this method. The Navigator object is a property of ... Read More

Advertisements