Front End Development Frameworks & State Management Flashcards
6 cards from real Front End Development practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 6 Front End Development Frameworks & State Management flashcards as text
In React, what is the purpose of the useState hook?
Answer: To add local state to a functional component
The useState hook allows functional components to declare and update local state variables, triggering re-renders when state changes.
What is the virtual DOM in React?
Answer: A lightweight in-memory representation of the real DOM used to optimize updates
React's virtual DOM is an in-memory object tree that React uses to diff against the real DOM and apply only the minimal necessary changes.
In Vue.js, which directive conditionally renders an element by toggling its display property?
Answer: v-show
v-show toggles an element's CSS display property without removing it from the DOM, unlike v-if which adds/removes the element entirely.
What is the purpose of Redux in a React application?
Answer: To manage and centralize application state
Redux provides a centralized store for application state, making state predictable and easier to debug across large React applications.
In Angular, what is a service used for?
Answer: Sharing data and business logic across multiple components
Angular services are singleton classes used to share data, logic, and functionality across components via dependency injection.
What is JSX in React?
Answer: A JavaScript XML syntax extension that allows HTML-like code in JavaScript
JSX is a syntax extension for JavaScript that lets developers write HTML-like markup directly within JavaScript files, compiled by Babel.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy