Basics of React
- What is React?
- Who developed React?
- In which year was React released?
- What is the latest stable version of React? (as of your knowledge)
- What is JSX?
- Is JSX mandatory in React?
- What is the virtual DOM?
- What are components in React?
- What are the types of components in React?
- What is the difference between functional and class components?
- What are props in React?
- What is state in React?
- Can props be changed?
- How do you create a functional component?
- How do you create a class component?
- What is the
render()method? - What is the purpose of
ReactDOM.render()? - Can you return multiple elements from a component?
- What is a fragment in React?
- What is the use of
keyin lists?
React JSX
- What does JSX stand for?
- Can browsers understand JSX?
- How do you write expressions in JSX?
- How do you comment inside JSX?
- Can we use
ifcondition inside JSX? - What is the correct way to apply inline CSS in JSX?
- Can JSX elements be self-closing?
- What is the difference between
classandclassNamein JSX? - How do you bind events in JSX?
- What is the role of curly braces
{}in JSX?
React Props and State
- What is the difference between props and state?
- How do you pass props to a component?
- Can you use props in a class component?
- How do you update state in a class component?
- How do you update state in a functional component?
- What is the use of
useState()? - Is state mutable?
- Can a component have multiple states?
- Can props be functions?
- Can we use props in
useEffect()?
React Lifecycle
- What are React lifecycle methods?
- Name lifecycle methods in class components.
- What is
componentDidMount()used for? - What does
componentWillUnmount()do? - What is the equivalent of
componentDidMount()in hooks? - What is
useEffect()? - How does
useEffect()work? - Can we use multiple
useEffect()hooks? - How do you stop
useEffectfrom running every time? - What does the cleanup function in
useEffectdo?
React Hooks
- What are hooks?
- When were hooks introduced in React?
- Can you use hooks inside class components?
- What is
useState()? - What is
useEffect()? - What is
useContext()? - What is
useRef()? - What is
useMemo()? - What is
useCallback()? - What is a custom hook?
- Can we call hooks conditionally?
- What are the rules of hooks?
React Routing
- What is React Router?
- How do you install React Router?
- What is
<BrowserRouter>? - What is
<Route>? - What is
<Link>? - What is the difference between
<Link>and<a>tag? - How to redirect to another page in React?
- What is the use of
useNavigate()? - What is dynamic routing in React?
- What is nested routing?
React Forms
- What are controlled components?
- What are uncontrolled components?
- How do you handle forms in React?
- What is the use of
onChange()? - How do you prevent form submission from refreshing the page?
- What is
event.target.value?
Advanced React
- What is Context API?
- Why do we need Context API?
- How do you create a context?
- What is
useContext()used for? - What is prop drilling?
- How does React handle performance optimization?
- What is memoization in React?
- What is
React.memo()? - What is reconciliation?
- What is lazy loading in React?
- What is suspense in React?
- What are error boundaries?
React with Other Tools
- What is Redux?
- What is the use of Redux in React?
- What are actions and reducers?
- What is the
Providerin Redux? - What is the difference between Redux and Context API?
- How do you connect Redux to a React app?
- What is a middleware in Redux?
Miscellaneous & Best Practices
- What are keys in React and why are they important?
- How to debug a React app?
- What is code splitting?
- How do you optimize React performance?
- What is the difference between React and Angular?
- What is the importance of
index.js? - How do you deploy a React app?
- What is Create React App (CRA)?
- Can React be used for mobile apps?
- What is React Native?
- What are higher-order components (HOC)?
- What is server-side rendering (SSR)?
- What are portals in React?