TGViewer
Coding Interview Preparation Coding Interview Preparation @coding_interview_preparation · 5.9K subscribers
Post #1192 500
✅  Frontend Frameworks Interview Q&A – Part 1 🌐💼

1️⃣ What are props in React?
Answer:
Props (short for properties) are used to pass data from parent to child components. They are read-only and help make components reusable.

2️⃣ What is state in React?
Answer
: State is a built-in object used to store dynamic data that affects how the component renders. Unlike props, state can be changed within the component.

3️⃣ What are React hooks?
*Answer:* Hooks like useState, useEffect, and useContext let you use state and lifecycle features in functional components without writing class components.

4️⃣ What are directives in Vue.js?
Answer
: Directives are special tokens in Vue templates that apply reactive behavior to the DOM. Examples include v-if, v-for, and v-bind.

5️⃣ What are computed properties in Vue?
Answer
: Computed properties are cached based on their dependencies and only re-evaluate when those dependencies change — great for performance and cleaner templates.

6️⃣ What is a component in Angular?
Answer
: A component is the basic building block of Angular apps. It includes a template, class, and metadata that define its behavior and appearance.

7️⃣ What are services in Angular?
Answer:
Services are used to share data and logic across components. They’re typically injected using Angular’s dependency injection system.

8️⃣ What is conditional rendering?
Answer:
Conditional rendering means showing or hiding UI elements based on conditions. In React, you can use ternary operators or logical && to do this.

9️⃣ What is the component lifecycle in React?
*Answer:* Lifecycle methods like componentDidMount, componentDidUpdate, and componentWillUnmount manage side effects and updates in class components. In functional components, use useEffect.

🔟 How do frameworks improve frontend development?
*Answer:* They offer structure, reusable components, state management, and better performance — making development faster, scalable, and more maintainable.

💬 Double 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 →