List of top 500 ReactJS Interview Questions & Answers....Coding exercise questions are coming soon!!
React Interview Questions & Answers
Click :star: if you like the project. Pull Requests are highly appreciated. Follow me @SudheerJonna for technical updates.
Practice 280+ JavaScript coding interview questions in-browser. Built by ex-FAANG interviewers. No AI-generated fluff. No fake reviews. Try GreatFrontEnd β π‘
I recommend this React course to become top 10% at React and this coding interview bootcamp to ace your coding interview and actually get hired.
Note: This repository is specific to ReactJS. Please check JavaScript Interview Questions for core JavaScript questions and Data Structures and Algorithms for DSA-related questions or problems.
Table of Contents
Hide/Show table of contents
| No. | Questions | | --- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | Core React | | 1 | What is React? | | 2 | What is the history behind Reactβs evolution? | | 3 | What are the major features of React? | | 4 | What is JSX? | | 5 | What is the difference between an Element and a Component? | | 6 | How do you create components in React? | | 7 | When should you use a Class Component over a Function Component? | | 8 | What are Pure Components? | | 9 | What is state in React? | | 10 | What are props in React? | | 11 | What is the difference between state and props? | | 12 | What is the difference between HTML and React event handling? | | 13 | What are synthetic events in React? | | 14 | What are inline conditional expressions? | | 15 | What is the "key" prop and what is its benefit when used in arrays of elements? | | 16 | What is the Virtual DOM? | | 17 | How does the Virtual DOM work? | | 18 | What is the difference between Shadow DOM and Virtual DOM? | | 19 | What is React Fiber? | | 20 | What is the main goal of React Fiber? | | 21 | What are controlled components? | | 22 | What are uncontrolled components? | | 23 | What is the difference between createElement and cloneElement? | | 24 | What is Lifting State Up in React? | | 25 | What are Higher-Order Components? | | 26 | What is the children prop? | | 27 | How do you write comments in React? | | 28 | What is reconciliation? | | 29 | Does the lazy function support named exports? | | 30 | Why does React use className instead of the class attribute? | | 31 | What are Fragments? | | 32 | Why are Fragments better than container divs? | | 33 | What are portals in React? | | 34 | What are stateless components? | | 35 | What are stateful components? | | 36 | How do you apply validation to props in React? | | 37 | What are the advantages of React? | | 38 | What are the limitations of React? | | 39 | What are the recommended ways for static type checking? | | 40 | What is the use of the react-dom package? | | 41 | What is ReactDOMServer? | | 42 | How do you use innerHTML in React? | | 43 | How do you apply styles in React? | | 44 | How are events different in React? | | 45 | What is the impact of using indexes as keys? | | 46 | How do you conditionally render components? | | 47 | Why do we need to be careful when spreading props on DOM elements? | | 48 | How do you memoize a component? | | 49 | How do you implement Server-Side Rendering (SSR)? | | 50 | How do you enable production mode in React? | | 51 | Do Hooks replace render props and higher-order components? | | 52 | What is a switching component? | | 53 | What are React Mixins? | | 54 | What are the pointer events supported in React? | | 55 | Why should component names start with a capital letter? | | 56 | Are custom DOM attributes supported in React v16? | | 57 | How do you loop inside JSX? | | 58 | How do you access props within attribute quotes? | | 59 | What is a React PropType array with shape? | | 60 | How do you conditionally apply class attributes? | | 61 | What is the difference between React and ReactDOM? | | 62 | Why is ReactDOM separated from React? | | 63 | How do you use the React label element? | | 64 | How do you combine multiple inline style objects? | | 65 | How do you re-render the view when the browser is resized? | | 66 | How do you pretty-print JSON with React? | | 67 | Why canβt you update props in React? | | 68 | How do you focus an input element on page load? | | 69 | How can you find the version of React at runtime in the browser? | | 70 | How do you add Google Analytics for React Router? | | 71 | How do you apply vendor prefixes to inline styles in React? | | 72 | How do you import and export components using React and ES6? | | 73 | What are the exceptions to React component naming? | | 74 | Is it possible to use async/await in plain React? | | 75 | What are common folder structures for React? | | 76 | What are popular packages for animation? | | 77 | What are the benefits of style modules? | | 78 | What are popular React-specific linters? | | | React Router | | 79 | What is React Router? | | 80 | How is React Router different from the history library? | | 81 | What are the
README truncated. View on GitHub