All fields

“Components & JSX” in Information Technology

40 questions across 1 technology.

Information Technology

40 questions in 1 technology

#QuestionTechnologyTopicLevel
1How do you add a CSS class to an element in JSX, and why is the attribute name different from regular HTML? React › Components & JSXReactComponents & JSXBeginner
2Why does JSX require every element to have exactly one parent element or a Fragment? React › Components & JSXReactComponents & JSXIntermediate
3What is JSX and why do React developers use it? React › Components & JSXReactComponents & JSXBeginner
4How do you embed a JavaScript expression inside JSX? React › Components & JSXReactComponents & JSXIntermediate
5What is a React component and what are the two main types? React › Components & JSXReactComponents & JSXBeginner
6What are CSS Modules and how do they prevent class names from clashing between components? React › Styling in React (CSS Modules, Styled Components & Tailwind)ReactStyling in React (CSS Modules, Styled Components & Tailwind)Beginner
7What is a controlled form input in React? React › Forms: Controlled & Uncontrolled ComponentsReactForms: Controlled & Uncontrolled ComponentsBeginner
8What is an uncontrolled form input, and how does it differ from a controlled one? React › Forms: Controlled & Uncontrolled ComponentsReactForms: Controlled & Uncontrolled ComponentsBeginner
9How do you prevent a form from reloading the page when it is submitted in React? React › Forms: Controlled & Uncontrolled ComponentsReactForms: Controlled & Uncontrolled ComponentsIntermediate
10What is Tailwind CSS and how does its approach differ from writing traditional custom CSS? React › Styling in React (CSS Modules, Styled Components & Tailwind)ReactStyling in React (CSS Modules, Styled Components & Tailwind)Intermediate
11What is Framer Motion and how does it make animating React components easier? React › Animation in React (Framer Motion & React Spring)ReactAnimation in React (Framer Motion & React Spring)Beginner
12What is the single responsibility principle and how does it apply to writing React components? React › Design Patterns in ReactReactDesign Patterns in ReactBeginner
13What is accessibility in React and why does it matter? React › Accessibility (a11y) in ReactReactAccessibility (a11y) in ReactBeginner
14How would you animate a button so it grows slightly when a user hovers over it? React › Animation in React (Framer Motion & React Spring)ReactAnimation in React (Framer Motion & React Spring)Beginner
15What does a build tool like Vite or Webpack actually do for a React project? React › Build Tools & Bundlers (Vite, Webpack & CRA)ReactBuild Tools & Bundlers (Vite, Webpack & CRA)Beginner
16What is component composition in React and why is it useful? React › Component Composition & Children PropsReactComponent Composition & Children PropsBeginner
17What is the difference between passing a component as a prop and nesting it as children? React › Component Composition & Children PropsReactComponent Composition & Children PropsBeginner
18How do you show different content in React depending on a condition? React › Conditional Rendering & Lists (Keys)ReactConditional Rendering & Lists (Keys)Beginner
19What is a React Portal and why would you use one? React › Portals & FragmentsReactPortals & FragmentsBeginner
20What is a Fragment in React and why would you use one instead of a div? React › Portals & FragmentsReactPortals & FragmentsBeginner
21What is the difference between props and state in React? React › Props & StateReactProps & StateBeginner
22How do you pass data from a parent component to a child component in React? React › Props & StateReactProps & StateBeginner
23What is client side routing in a React app, and how does React Router help with it? React › RoutingReactRoutingBeginner
24How do you create a clickable link to navigate between pages using React Router? React › RoutingReactRoutingBeginner
25What should you place inside a Suspense fallback, and what are some good practices? React › Suspense & Concurrent RenderingReactSuspense & Concurrent RenderingBeginner
26Why do many teams choose to use TypeScript together with React? React › TypeScript with ReactReactTypeScript with ReactBeginner
27How do you type an event handler function, such as a button's onClick handler, in TypeScript? React › TypeScript with ReactReactTypeScript with ReactBeginner
28What is the virtual DOM in React, and why does React use it? React › Virtual DOM & ReconciliationReactVirtual DOM & ReconciliationBeginner
29How do ARIA attributes help improve accessibility in a React component? React › Accessibility (a11y) in ReactReactAccessibility (a11y) in ReactIntermediate
30How do you make a custom React component keyboard accessible? React › Accessibility (a11y) in ReactReactAccessibility (a11y) in ReactIntermediate
31How would you animate a list where items can be added or removed, such as a shopping cart? React › Animation in React (Framer Motion & React Spring)ReactAnimation in React (Framer Motion & React Spring)Intermediate
32What is the children prop in React and how does it work? React › Component Composition & Children PropsReactComponent Composition & Children PropsIntermediate
33How do you render a fallback message when a list is empty? React › Conditional Rendering & Lists (Keys)ReactConditional Rendering & Lists (Keys)Intermediate
34How does the react i18next library help manage translations in a React app? React › Internationalization (i18n) in ReactReactInternationalization (i18n) in ReactIntermediate
35How do event bubbling and Portals interact with each other in React? React › Portals & FragmentsReactPortals & FragmentsIntermediate
36How would you use a keyed Fragment when rendering a list of grouped elements? React › Portals & FragmentsReactPortals & FragmentsIntermediate
37How would you give a prop a default value in case the parent does not pass one? React › Props & StateReactProps & StateIntermediate
38How do you read a dynamic value from the URL, such as a product id, using React Router? React › RoutingReactRoutingIntermediate
39How would you type a component's children prop correctly using TypeScript? React › TypeScript with ReactReactTypeScript with ReactIntermediate
40How would you build a flexible component using multiple named slots instead of a single children prop? React › Component Composition & Children PropsReactComponent Composition & Children PropsAdvanced