Skip to content

hritikpatidar/React-JavaScript-interview-questions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 React Interview Questions & Answers

Table of Contents

No. Question
React Project Installation Using Vite Recommended
React Project Installation Using Next.js Recommended for Production

Core React

No. Question
1 What is ReactJS?
2 What is the history behind React evolution?
3 What Are the Major Features of React?
4 What is the Difference Between Element and Component in React?
5 How to Create Components in React?
6 What are Hooks and Important Hooks Explained?
7 Why can't we use async directly in useEffect?
8 What is a Higher-Order Component (HOC)?
9 What is State in React?
10 What is Props in React?
11 What is the Difference Between State and Props?
12 What is Prop Drilling in React?
13 What is Context API in React?
14 What are the Lifecycle Methods of React Components?
15 What are the Types of Components in React?
16 What is the difference between HTML and React event handling?
17 What Are Synthetic Events?
18 What Are Inline Conditional Expressions?
19 What is Virtual DOM?
20 What is the difference between Shadow DOM and Virtual DOM?
21 What is React Fiber?
22 What is children prop?
23 How to write comments in React?
24 What is Lifting State Up in React?
25 What is the DOM?

Redux Questions

No. Question
1 What is Flux?
2 What is Redux?
3 Why Use Redux?
4 What is a store in Redux?
5 What is an action in Redux?
6 What is a reducer in Redux?
7 What is the role of dispatch in Redux?
8 How do you connect a React component with Redux?
9 What is the use of useSelector and useDispatch in Redux?
10 What is the difference between local state and Redux store?
11 What are middleware in Redux? Can you name a few?
12 What is Redux DevTools and how does it help in debugging?
13 What are pure functions and why should reducers be pure?
14 How do you initialize the Redux store in a React app?
15 Can you explain the Redux data flow cycle?
16 What are the pros and cons of using Redux?
17 How does Redux handle asynchronous operations?
18 What is redux-thunk and how does it work?
19 What is the difference between redux-thunk and redux-saga?
20 What are some alternatives to Redux for state management?
21 How would you optimize performance in a large Redux application?
22 How do you handle large and deeply nested state in Redux?
23 What are selectors and why are they useful?
24 How would you structure a scalable Redux folder architecture?
25 What are some common anti-patterns in Redux and how do you avoid them?
26 Can you explain Redux Toolkit and its benefits?
27 What is createSlice() in Redux Toolkit? How is it different from traditional Redux?
28 How would you implement undo/redo functionality in Redux?
29 How do you persist Redux state across sessions?
30 Have you ever encountered circular dependencies in Redux modules? How did you solve it?
31 Can I dispatch an action in reducer?

About

React & JavaScript interview questions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •