Found 201 Articles for React JS

How to Use Google Fonts in React?

Abhishek Tripathi
Updated on 17-Mar-2025 15:56:27

41 Views

Google Fonts is a widely used library of open-source web fonts that provides a vast collection of typefaces to enhance the visual appeal of web applications. It allows developers to easily integrate high-quality fonts into their React applications. In this React Google Fonts article, we will cover three different methods to add custom fonts (Google font) to your React application. Before adding custom fonts to your project, you should be familiar with the following concepts: NPM & Node.js, React.js, and Styled Components. Why Use Google Fonts? Google Fonts offers several benefits: Wide ... Read More

How to force composer to reinstall a library?

INDRA HEMBRAM
Updated on 21-Feb-2025 17:55:30

163 Views

Composer is a dependency management tool for PHP that is widely used in PHP projects to manage and install libraries. At times, you may need to force Composer to reinstall a library to ensure it has the latest version or to fix any corrupted or missing files. Below is a step-by-step guide on how to do this. Steps to Force Reinstallation Composer doesn't have a built-in "reinstall" command, but you can achieve reinstallation using the following methods: Method 1: Remove and Reinstall the Library Remove the Library The simplest way to reinstall a library is to first remove ... Read More

Difference between super() and super(props) in React

Aniket Jain
Updated on 16-Dec-2024 11:50:33

74 Views

When working with React class components, one often encounters the super() and super(props) calls inside the constructor. These methods are crucial for initializing a class component and inheriting properties from React.Component base class. While they may look similar at first glance, they serve different purposes depending on how you intend to use props. In this article, we’ll explore the difference between super() and super(props) and help you understand when to use each. Introduction of super() and super(props) in React super(): The super() function is used to call the constructor of the parent class. In ... Read More

How to customize Chip in Material UI?

Tarun Singh
Updated on 31-Oct-2023 14:58:36

3K+ Views

In this article, we are going to learn how to customize chips in Material UI. Chips are small components that stand in for input, an attribute, or an action. With the aid of chips, users can input data, select options, filter content, or start processes. The chip can also be customized in the MUI in React. Customization of the chip may include, changing chip colors, custom deleting icons, adding avatars, or creating a chip using its root property. We will see everything in this article. To work with chip in MUI, we need to understand their API and its related ... Read More

How to create discrete sliders in Material UI?

Tarun Singh
Updated on 31-Oct-2023 14:57:10

247 Views

Developers can easily implement sliders thanks to the Slider component provided by Material UI. In the Material UI, sliders can either be continuous or discrete. While discrete sliders limit the selection to particular, predefined values, continuous sliders let users choose any value within a given range. In this article, we are going to learn how to create discrete sliders in Material UI. What are Discrete Sliders? The discrete slider allows the user only to select the value in a particular range as compared to the other sliders. To use the discrete sliders in React, we can adjust the slider to ... Read More

How to create controlled switches with form groups in Material UI?

Tarun Singh
Updated on 31-Oct-2023 14:48:12

343 Views

Switches in React MUI are a type of input element that allows the user to choose any one state, commonly an on or off state. These are commonly used to adjust settings on mobile devices. It is simply a check type button that helps toggle one of the two pre-defined states. In this article, we will learn how to create controlled switches with form groups in Material UI. The reason for using FormGroup is that it provides a wrapper that allows grouping the selection control components and provides an easier API. Steps to create controlled switches Below are the steps ... Read More

How to create a slider with input in Material UI?

Tarun Singh
Updated on 31-Oct-2023 14:44:02

785 Views

React developers can easily add or use sliders in React thanks to the Slider component provided by Material UI. In the Material UI, apart from using normal sliders, we may also define an input to provide a custom value that can be entered by users manually. In this article, we are going to learn how to create sliders with input in Material UI. What is a Slider with Input? A user interface element called a Slider with an input field combines two input techniques for choosing a numerical value from a predetermined range. Usually, it has a slider element and ... Read More

How to create complex buttons in Material UI?

Tarun Singh
Updated on 30-Oct-2023 11:15:23

308 Views

Within web applications, buttons are essential for enabling user engagement. Sometimes we are in need of providing custom interaction to the users using their applications or websites. You can create complex buttons with cutting−edge features, unique styles, and interactive behavior in addition to the simple buttons with standard features that Material UI offers. To provide the custom interaction in the buttons, we can use a really cool API given in the Material UI, i.e., the ButtonBase component API. In this article, we are going to learn how to create complex buttons in Material UI. Before going further in the article, ... Read More

How to create animations for the Floating action button in Material UI?

Tarun Singh
Updated on 30-Oct-2023 11:13:10

365 Views

A floating action button is a shape, with an icon at the center that appears in front of all screen content. Material UI is a known React component library that offers a range of pre designed and customizable UI components. Among these components the Floating Action Button (FAB) is quite popular. To enhance the user experience, we can add animations to the FAB making it more visually appealing and engaging. In this article, we will explore how to create animations for the Floating Action Button in Material UI. What is a Floating Action Button? Now let's understand what a Floating ... Read More

How to change the size and color of the checkbox in Material UI?

Tarun Singh
Updated on 30-Oct-2023 11:11:13

3K+ Views

A checkbox is a key component when there is a need to choose multiple options from a list of options. To have control over the size of the checkboxes and to match the web design, ensure that proper sizes and colors have been added. In this article, we are going to learn how to change the size and color of the checkbox in Material UI. Creating a React project and adding the Material UI to it are prerequisites before continuing with the article. Let us begin and see how to modify the checkbox's size and color in its entirety. Steps ... Read More

1 2 3 4 5 ... 21 Next
Advertisements