Coding interview preparation for software engineers
Interview questions, DSA, clean solutions.
Join π https://rebrand.ly/bigdatachannels
Buy ads: https://telega.io/c/coding_interview_preparation
DMCA: @disclosure_bds
Contact: @mldatascientist
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
4οΈβ£ What are directives in Vue.js?
Answer: Directives are special tokens in Vue templates that apply reactive behavior to the DOM. Examples include
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
9οΈβ£ What is the component lifecycle in React?
*Answer:* Lifecycle methods like
π 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
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








