React Questions
59+ React Questions and Answers
1 . Why Not To Modify React State Directly ?
2 . Difference between HTML and React Event Handling?
3 . Why Jsx?
4 . Can browser read JSX directly?
5 . How do you use JavaScript in JSX?
6 . What is Immutable ?
7 . What is component and props in React?
8 . Why should Component names start with capital letter in React?
9 . What is mount and unmount React?
10 . When render is called in React?
11 . What is uses of componentDidMount in react
12 . Why is the key important in React list?
13 . What is the use of componentWillUnmount?
14 . What is State in react ?
15 . What is the lifecycle of a component?
16 . What is SyntheticEvent ?
17 . Why we use synthetic events in ReactJS ?
18 . What is the use of toggle in JavaScript?
19 . How do I use componentWillMount?
20 . When component did mount is called?
21 . What is componentWillReceiveProps?
22 . How can we display a list in react ?
23 . What is state in React?
24 . What is the use of key in react ?
25 . What is reconciliation?
26 . What is a purpose of code splitting?
27 . What is the proper placement for error boundaries?
28 . When to Use Context
29 . How does a forward Ref work?
30 . What is controlled component in react ?
31 . What is uncontrolled component in react ?
32 . What are higher-order component?
33 . What are the children in React?
34 . What is React and why use it?
35 . What is the purpose of a function as a child in React?
36 . What is virtualization in rendering?
37 . What is the use of React portals?
38 . What is the use of refs in React?
39 . What are the render props?
40 . What is Strict Mode in react ?
41 . What are Hooks in React ?
42 . What are the two rules of React Hooks?
43 . Why is useEffect used?
44 . What is useState used for?
45 . What are the differences between props and state
46 . What is useContext used for in React?
47 . What is useReducer for?
48 . Why useCallback is used in React?
49 . What is useMemo used for?
50 . What is useRef used for?
51 . Does useLayoutEffect run before render?
52 . What is reconciliation?
53 . What is fragment in Reactjs and why do we use it?
54 . What are pure components with example?
55 . What is stateless and stateful components?
56 . What are keys used for in React?
57 . What are props in React?
58 . How to create components in React?
59 . How JSX works in React ?
Copyright ©2022, React Questions and Answers