reactjs-interview-questions README

The project's README from github.com/sudheerj/reactjs-interview-questions. As one markdown file: README.md.

React Interview Questions & Answers

Click :star: if you like the project. Pull Requests are highly appreciated. Follow me @SudheerJonna for technical updates.


GreatFrontEnd React Interview Questions

Practice 280+ JavaScript coding interview questions in-browser. Built by ex-FAANG interviewers. No AI-generated fluff. No fake reviews. Try GreatFrontEnd → 💡

ZTM Logo

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.


Resume Loom


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?
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

reactjs-interview-questions (sudheerj/reactjs-interview-questions)

Searching Database…

这是什么?这是一份精选列表,包含 500 多道 ReactJS 面试题及答案,涵盖 React 核心概念、Hooks、Redux、React Router 等内容,旨在帮助开发者准备 React 岗位面试。
这是题目列表还是正式课程?它是一个很长的 README 文件,顶部是问题目录,每个问题都链接到页面下方一段简短的文字答案。它不是视频课程,也不是互动测验应用。
内容是怎么组织的,我应该从哪里开始?问题按主题分组,第一组是“Core React”(核心 React),目录列在页面顶部。点击某个问题即可跳转到对应答案。建议从“What is React?”(什么是 React?)开始,再逐步学习更高级的主题。
它也包含编程练习题,还是只有理论问题?目前只包含理论问答,编程练习部分已经计划,但尚未上线。
它只涵盖核心 React,还是也包括 Redux 和 React Router?它既涵盖核心 React(组件、Hooks、JSX、Fiber 等),也涵盖 Redux、React Router 等相关生态主题,具体以其列出的主题和配套章节为准。
有没有专门针对普通 JavaScript 面试准备的资源?有。README 提到另有一个相关仓库,专门收录核心 JavaScript 面试题,因为本仓库只聚焦 ReactJS。
这些内容还在更新吗?还在更新。仓库积极欢迎提交 Pull Request,并提到了即将新增的编程练习题等内容。
为什么要用这个,而不是看零散的博客文章?它把 500 多道常见的 React 面试题及简明答案集中在一个有组织、由社区维护的仓库中,省去了在多篇零散文章之间来回查找的麻烦。
Creator
sudheerj
Size
18.9 MB
Stars
44.9K
Updated
CommitAug 31
Age
8y
Commits · 90 Days