TGViewer
Coding Interview Preparation Coding Interview Preparation @coding_interview_preparation · 5.9K subscribers
Post #1193 565
✅ Frontend Frameworks Interview Q&A – Part 2 🌐💼 

1️⃣ What is Virtual DOM in React?
Answer:

The Virtual DOM is a lightweight copy of the real DOM. React updates it first, calculates the difference (diffing), and then efficiently updates only what changed in the actual DOM.

2️⃣ Explain data binding in Angular.
Answer: 

Angular supports one-way, two-way ([(ngModel)]), and event binding to sync data between the component and the view.

3️⃣ What is JSX in React?
Answer:

JSX stands for JavaScript XML. It allows you to write HTML-like syntax inside JavaScript, which is compiled to React’s createElement() calls.

4️⃣ What are slots in Vue.js?
Answer: 

Slots allow you to pass template content from parent to child components, making components more flexible and reusable.

5️⃣ What is lazy loading in Angular or React? 
Answer: 

Lazy loading is a performance optimization technique that loads components or modules only when needed, reducing initial load time.

6️⃣ What are fragments in React?
Answer:

<React.Fragment> or <> lets you group multiple elements without adding extra nodes to the DOM.

7️⃣ How do you lift state up in React? 
Answer:

By moving the shared state to the closest common ancestor of the components that need it, and passing it down via props.

8️⃣ What is a watch property in Vue?
Answer:

watch allows you to perform actions when data changes — useful for async operations or side effects.

9️⃣ What is dependency injection in Angular?
Answer:

A design pattern where Angular provides objects (like services) to components, reducing tight coupling and improving testability.

🔟 What is server-side rendering (SSR)?
Answer:

SSR renders pages on the server, not the browser. It improves SEO and load times. Examples: Next.js (React), Nuxt.js (Vue), Angular Universal.

💬 Tap ❤️ for more!
  • ❤ 2
More from @coding_interview_preparation
  1. Oct 12, 2026Java Coding Interview Questions Easy 1. Reverse a string without using a built-in reverse…
  2. Oct 10, 2026100 SQL interview questions
  3. Oct 8, 2026If you're prepping for system design interviews, this repo is gold It contains a curated,…
  4. Oct 6, 2026document post
  5. Oct 4, 2026💼 Why Your Resume Gets Rejected Before a Human Reads It You may have good skills and proj…
  6. Oct 2, 2026🧠 Coding Myths You Should Stop Believing There's a lot of advice online about learning to…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →