🇮🇳 Full Stack Web Development · flashcards
Full Stack Web Development Front-End Development with React Flashcards
51 question-and-answer cards covering Front-End Development with React as it is examined in Full Stack Web Development. 24 of them are printed below, taken from across the deck — no signup, no paywall on the preview.
24 sample cards from the Front-End Development with React deck
Sampled from the end of the deck, so these are different cards from the ones shown on the syllabus page.
How do you attach an event handler to a JSX element?
Pass a function to a camelCased event prop, e.g. <button onClick={handleClick}>. Pass the function reference, not its call result (handleClick, not handleClick()).
What is a SyntheticEvent in React?
A cross-browser wrapper around the browser's native event that React passes to handlers, providing a consistent API (e.g., e.preventDefault(), e.target) across browsers.
How do you pass an argument to an event handler in JSX?
Wrap it in an arrow function, e.g. onClick={() => handleClick(id)}, so the handler is called with the argument only when the event fires.
What is a controlled component in a React form?
A form input whose value is driven by React state via the value prop and updated through an onChange handler, making React the single source of truth.
What is an uncontrolled component, and how do you read its value?
A form input that maintains its own internal state in the DOM. You read its value with a ref (e.g., inputRef.current.value) instead of React state.
How do you prevent a form's default page-reload on submit in React?
Call event.preventDefault() inside the onSubmit handler attached to the <form> element.
For a controlled checkbox, which prop holds its state instead of 'value'?
The 'checked' prop holds the boolean state, updated via onChange (using e.target.checked).
What is client-side routing?
Rendering different views/components based on the URL without full page reloads from the server; the JavaScript app intercepts navigation and swaps content, enabling SPA navigation.
In React Router, what component is used to create navigation links without reloading the page?
The <Link> component (or <NavLink> for active styling), which renders an anchor and updates the URL via the History API instead of triggering a full reload.
In React Router v6, how do you define routes?
Wrap <Route> elements inside a <Routes> component, e.g. <Routes><Route path='/' element={<Home/>}/></Routes>, all inside a router like <BrowserRouter>.
How do you read a dynamic URL parameter in React Router (e.g., /users/:id)?
Use the useParams hook: const { id } = useParams();
How do you navigate programmatically in React Router v6?
Use the useNavigate hook: const navigate = useNavigate(); then call navigate('/path').
What is prop drilling, and what is one solution?
Passing props through many intermediate components that don't use them, just to reach a deep child. Solutions include the Context API or a state-management library.
What two parts make up the React Context API for sharing global state?
A Provider (created via React.createContext()) that supplies a value to the tree, and consumers that read it via useContext (or a Context.Consumer).
What is Redux, in one sentence?
A predictable state-management library that stores all application state in a single immutable store, updated only by dispatching actions to pure reducer functions.
What are the three core principles of Redux?
1) Single source of truth (one store). 2) State is read-only (changed only by dispatching actions). 3) Changes are made with pure reducer functions.
What are the three main ways to style React components?
1) CSS stylesheets with className. 2) Inline styles via the style prop (a JS object with camelCased properties). 3) CSS-in-JS / CSS Modules (scoped styles).
What format does React's inline 'style' prop expect?
A JavaScript object with camelCased CSS property names and string/number values, e.g. style={{ backgroundColor: 'red', fontSize: 16 }}.
What problem do CSS Modules solve?
They locally scope class names by default (generating unique names), preventing global CSS naming collisions between components.
What does React.memo do?
It is a higher-order component that memoizes a functional component, skipping re-renders when its props are unchanged (shallow comparison), to optimize performance.
Why does React require a 'key' prop when rendering lists?
Keys give each list item a stable identity so React can efficiently track, reorder, add, or remove items during reconciliation. Keys should be unique and stable—avoid using the array index when the list can change.
What is code splitting in React, and which APIs enable it?
Splitting the bundle so code loads on demand rather than all upfront. React.lazy() loads a component lazily, and <Suspense fallback={...}> shows a fallback while it loads.
What is the role of a bundler/build tool like Vite or Webpack in a React project?
It transpiles JSX/modern JS (via Babel), bundles modules, and optimizes assets (minification, tree-shaking, dev server with hot reload) for development and production. Vite is known for fast startup using native ES modules; Webpack is the long-established bundler.
What library is commonly used to test React components by simulating user behavior, and what is its guiding principle?
React Testing Library (often with Jest). Its principle is to test components the way a user interacts with them—querying by visible text/role rather than implementation details.
What this deck covers
The Front-End Development with React deck follows the Full Stack Web Development Front-End Development with React syllabus — 4 chapters and 14 topics — so questions land on material that is genuinely examinable rather than trivia around it. That works out to roughly 12.8 cards per chapter.
Answers are written to be recallable, not just readable — averaging about 150 characters, which is long enough to carry the reasoning and short enough to say out loud.
A deck like this earns its keep on the second and third pass. Read the syllabus first so you know the shape of the subject, then use the cards to find the specific facts that have not stuck.
Front-End Development with React flashcards FAQ
How many Front-End Development with React flashcards are in this Full Stack Web Development deck?
51 cards. This page previews 24 of them, sampled evenly across the deck so you can judge the difficulty before installing anything.
Are these Full Stack Web Development flashcards free?
Yes. The preview here is free to read with no signup, and the full 51-card deck is free inside the Examius app.
What do the Front-End Development with React cards cover?
They follow the Full Stack Web Development Front-End Development with React syllabus — 4 chapters and 14 topics — so the questions track what is actually examinable.
How should I use these flashcards?
Read the syllabus first so you know the shape of the subject, then drill the deck. Examius schedules each card with spaced repetition, so cards you keep missing come back sooner and ones you know drift further apart.