Câu hỏi mới đã được thêm!Khám phá ngay
Nếu bạn mới bắt đầu phỏng vấn frontend, chúng tôi khuyên bạn bắt đầu với danh sách cơ bản.
## TL;DR When the setter function returned by the hook is called in React, it schedules an update to the component's…
## TL;DR The virtual DOM in React is a lightweight copy of the actual DOM. When the state of a component changes, Rea…
## TL;DR Both hooks run side effects after render, but they differ in when they fire relative to paint: - runs as…
## TL;DR The presentational vs container component pattern (also known as "dumb vs smart components") splits componen…
## TL;DR The composition pattern in React is the practice of building UIs by combining smaller, reusable components i…
## TL;DR Static generation (SSG) pre-renders pages to HTML at build time, instead of rendering them per request. The…
## TL;DR Server-side rendering (SSR) in React involves rendering React components on the server and sending the resul…
## TL;DR The most idiomatic way to reset a component's state in React is to give the component a prop and change it…
## TL;DR React Portals are used to render children into a DOM node that exists outside the hierarchy of the parent co…
## TL;DR A React Node is anything React can render: a React Element, a string, a number, an array of nodes, a fragmen…
## TL;DR React hydration is the process of attaching event listeners and making a server-rendered HTML page interacti…
## TL;DR Match the tool to the kind of state. Use / for local component state, and lift state up before reaching for…
## TL;DR In React, one-way data flow means that data moves in a single direction: from parent components down to chil…
## TL;DR The prop tells React how to identify each child in a list across renders so it can match the right componen…
## TL;DR To localize a React application, you typically use a library like or . First, you set up your translation f…
## TL;DR In a modern React app, don't roll your own + for data loading — the React docs explicitly recommend agains…
## TL;DR The Flux pattern is an architectural design Facebook introduced for managing state in React applications. It…
## TL;DR To debug React applications, use the React Developer Tools browser extension to inspect the component tree,…
## TL;DR A controlled component drives a form input from React state — you pass / plus an handler, and React state i…