← 모든 태그

#dom

14개의 노트

What is DOM

The Document Object Model (DOM) is a programming interface for HTML and XML documents. It represents the page so that programs can change the document...

dev

Can you access the DOM in Node.js

No, you cannot access the DOM in Node.js because it does not have a DOM. It is a server-side runtime for JavaScript, so it does not have access to the...

dev

component's lifecycle

In React functional components, **lifecycle-like behaviors** are achieved ==using hooks==:

dev

Features of React

Use of Virtual DOM instead of Real DOM, JSX, Server-side rendering, Unidirectional data flow or data binding, Reusable components, etc.

dev

Fragments

React doesn't allow returning multiple elements from a component. You can use fragments to return multiple elements.

dev

Reconciliation

Reconciliation is the process through which React updates the DOM by comparing the newly returned elements with the previously rendered ones. React up...

dev

ref forwarding

By default, each component’s DOM nodes are private. However, sometimes it’s useful to expose a DOM node to the parent—for example, to allow focusing i...

dev

Refs

Refs are used to get reference to a DOM node or an instance of a component. They help to access the DOM nodes or React elements created in the render ...

dev

Synthetic Events

React differs from HTML in that it uses a synthetic event system instead of directly binding to the browser’s native events. This system brings consis...

dev

Compression

> Compress your JavaScript and keep an eye on your chunk sizes for optimal performance. Overly high JavaScript bundle granularity can help with dedupl...

dev

Third-party

> tl;dr: Third-party resources can slow down sites and can be a challenge to optimize. You can follow certain best practices to load or delay differen...

dev

Virtual-lists

In this guide, we will discuss list virtualization (also known as

dev

Can You Access The DOM In Node.js

No, you cannot access the DOM in Node.js because it does not have a DOM. It is a server-side runtime for JavaScript, so it does not have access to the...

dev

Real DOM vs Virtual DOM

Understanding the difference between Real DOM and Virtual DOM

dev