Found 8894 Articles for Front End Technology

What is DOM in React?

Payal Mittal
Updated on 07-Nov-2022 10:39:31

3K+ Views

DOM stands for ‘Documents Object Model’. It’s the World Wide Web Consortium's fundamental logical homepage model. Every time the UI state of an application changes, the DOM is updated to reflect the change. Whenever the application user interface is updated, the DOM is rendered which ultimately impacts the application performance, resulting in slower loading. The complexity of the DOM and the numerous UI components further depletes the performance because each change necessitates a new rendering of the page. However, the virtual DOM concept in React has changed everything. Let’s see below − What is DOM? To put it another way, ... Read More

What is client-side rendering in React?

Payal Mittal
Updated on 07-Nov-2022 10:35:28

7K+ Views

Client−side rendering is a technique used in web development to improve the performance of web pages. It moves the browser’s rendering process from the server to the client. This way, there is no need for a round−trip request to render a page. Let's start by discussing what occurs when your program requires client−side rendering. React applications are developed by calling one or several JavaScript modules from a simple HTML document while utilizing only the CLI or React command create−react−app. The HTML of each page is created and loaded into the website by JavaScript, which automatically adds it to the document's ... Read More

What is a Single Page Application?

Payal Mittal
Updated on 07-Nov-2022 10:31:24

941 Views

Single Page Applications or SPAs are beginning to rule the IT marketplace now. (And for good reasons!) They are incredibly fast and render an amazing user experience. But what makes them faster? Well, the reason is that the SPAs enable the users to navigate through several pages without having to refresh the page. As the single page applications dynamically rewrite the web page content from the server, they do not load the entire web page after every render. This way, the web pages potentially improvise the performance by creating a more dynamic user experience. Let’s learn about the ... Read More

What are Hooks in React?

Payal Mittal
Updated on 07-Nov-2022 09:26:21

3K+ Views

React Hooks open up a completely new approach to constructing functional components, enabling us to include capabilities like stateful logic that are only available for class components. React mostly makes use of its built−in hooks, useState and useEffect Hooks, to do this. These hooks j In this article, we will go over what hooks are and how they can be used to create applications with React. We will also see how they simplify everyday development workflows. All About React Hooks As quoted by team React− “React Hooks are a new feature of React.js that makes it possible to use ... Read More

How does React work?

Payal Mittal
Updated on 07-Nov-2022 09:30:04

295 Views

The front−end development ecosystem is constantly changing. It is getting harder for business owners to choose the finest library or framework from the many available since new tools are released daily. Speaking of frontend, React.js have been setting records in the web development industry for some time and doing splendidly despite having huge competition. Why is it so? How is it that react has been able to rule the IT industry while other libraries are still struggling? We’ll get all these answers in this blog. So, let’s dive in − What is React.js? React is an open−source, front−end JavaScript library, ... Read More

A Guide To Server-Side Rendering In React

Payal Mittal
Updated on 26-Oct-2023 03:36:11

19K+ Views

Server−side rendering has been around for a while now. It was first introduced in the early 2000s and has been used by many websites since then. The idea behind this technique is to pre−render HTML pages on a server and send them back to the client's browser as they request them. With server-side rendering (SSR), the page is rendered on the server. This ensures that the page is available to users even before it loads on their browser. We’ll get to know more about SSR in this article − How Server-side Rendering (SSR) Works? It is the process of rendering ... Read More

How to embed base64 images in HTML?

AmitDiwan
Updated on 01-Nov-2022 13:11:58

7K+ Views

To embed images encoded with Base64, use the img element. This prevents the page from loading slowly and saves the web browser from additional HTTP requests. Set the base64 image in the src attribute of the . Let’s say we have the following image − Note − The bigger the image, the more will its bease64 code For Base64, we will consider the Data URL of the image, which is placed in the src attribute. The Data URL has two parts − The 1st part is the Base64 encoded image. The 2nd part is the Base64 encoded ... Read More

Get the size of the screen, current web page and browser window in JavaScript

AmitDiwan
Updated on 01-Nov-2022 13:07:30

1K+ Views

To get the current screen size of a web page, use the window.inner. We can also use the window.outerWidth and window.outerHeight as shown below to get the outer width and height of the web browser windows. We will see two examples − Get the Inner Width and Height Get the Outer Width and Height Get the Inner Width and Height To get the current screen size of a web page, use the window.innerWidth and window.innerHeight − var wd = window.innerWidth; var ht = window.innerHeight; Example Let us see an example − DOCTYPE html> ... Read More

Can different HTML elements have the same ID?

AmitDiwan
Updated on 01-Nov-2022 13:01:36

397 Views

No, we cannot have the same ID for different elements in HTML. IDs have to be unique in the entire HTML page. Even the official HTML standards suggest the same − Using the unique id attribute Example Let us see an example. Here, we have used the id attribute − DOCTYPE html> #myHeader { border: 3px solid violet; background-color: blue; ... Read More

How do I make a placeholder for a 'select' box?

AmitDiwan
Updated on 01-Nov-2022 12:54:41

3K+ Views

In HTML, placeholder attribute is present for creating a placeholder, but unfortunately it isn’t available for the select box. Create Placeholder for select We can use the option tag to define an option in a select list. The value attribute of the option tag is used for this. Here we have set List of Technologies as the placeholder text − List of Technologies Example Let us now see the complete example − DOCTYPE html> select { appearance: ... Read More

Advertisements