Your Page Title
🔍

    React Quiz

    Basics of React

    1. What is React?
    2. Who developed React?
    3. In which year was React released?
    4. What is the latest stable version of React? (as of your knowledge)
    5. What is JSX?
    6. Is JSX mandatory in React?
    7. What is the virtual DOM?
    8. What are components in React?
    9. What are the types of components in React?
    10. What is the difference between functional and class components?
    11. What are props in React?
    12. What is state in React?
    13. Can props be changed?
    14. How do you create a functional component?
    15. How do you create a class component?
    16. What is the render() method?
    17. What is the purpose of ReactDOM.render()?
    18. Can you return multiple elements from a component?
    19. What is a fragment in React?
    20. What is the use of key in lists?

    React JSX

    1. What does JSX stand for?
    2. Can browsers understand JSX?
    3. How do you write expressions in JSX?
    4. How do you comment inside JSX?
    5. Can we use if condition inside JSX?
    6. What is the correct way to apply inline CSS in JSX?
    7. Can JSX elements be self-closing?
    8. What is the difference between class and className in JSX?
    9. How do you bind events in JSX?
    10. What is the role of curly braces {} in JSX?

    React Props and State

    1. What is the difference between props and state?
    2. How do you pass props to a component?
    3. Can you use props in a class component?
    4. How do you update state in a class component?
    5. How do you update state in a functional component?
    6. What is the use of useState()?
    7. Is state mutable?
    8. Can a component have multiple states?
    9. Can props be functions?
    10. Can we use props in useEffect()?

    React Lifecycle

    1. What are React lifecycle methods?
    2. Name lifecycle methods in class components.
    3. What is componentDidMount() used for?
    4. What does componentWillUnmount() do?
    5. What is the equivalent of componentDidMount() in hooks?
    6. What is useEffect()?
    7. How does useEffect() work?
    8. Can we use multiple useEffect() hooks?
    9. How do you stop useEffect from running every time?
    10. What does the cleanup function in useEffect do?

    React Hooks

    1. What are hooks?
    2. When were hooks introduced in React?
    3. Can you use hooks inside class components?
    4. What is useState()?
    5. What is useEffect()?
    6. What is useContext()?
    7. What is useRef()?
    8. What is useMemo()?
    9. What is useCallback()?
    10. What is a custom hook?
    11. Can we call hooks conditionally?
    12. What are the rules of hooks?

    React Routing

    1. What is React Router?
    2. How do you install React Router?
    3. What is <BrowserRouter>?
    4. What is <Route>?
    5. What is <Link>?
    6. What is the difference between <Link> and <a> tag?
    7. How to redirect to another page in React?
    8. What is the use of useNavigate()?
    9. What is dynamic routing in React?
    10. What is nested routing?

    React Forms

    1. What are controlled components?
    2. What are uncontrolled components?
    3. How do you handle forms in React?
    4. What is the use of onChange()?
    5. How do you prevent form submission from refreshing the page?
    6. What is event.target.value?

    Advanced React

    1. What is Context API?
    2. Why do we need Context API?
    3. How do you create a context?
    4. What is useContext() used for?
    5. What is prop drilling?
    6. How does React handle performance optimization?
    7. What is memoization in React?
    8. What is React.memo()?
    9. What is reconciliation?
    10. What is lazy loading in React?
    11. What is suspense in React?
    12. What are error boundaries?

    React with Other Tools

    1. What is Redux?
    2. What is the use of Redux in React?
    3. What are actions and reducers?
    4. What is the Provider in Redux?
    5. What is the difference between Redux and Context API?
    6. How do you connect Redux to a React app?
    7. What is a middleware in Redux?

    Miscellaneous & Best Practices

    1. What are keys in React and why are they important?
    2. How to debug a React app?
    3. What is code splitting?
    4. How do you optimize React performance?
    5. What is the difference between React and Angular?
    6. What is the importance of index.js?
    7. How do you deploy a React app?
    8. What is Create React App (CRA)?
    9. Can React be used for mobile apps?
    10. What is React Native?
    11. What are higher-order components (HOC)?
    12. What is server-side rendering (SSR)?
    13. What are portals in React?

    Leave a Reply

    Your email address will not be published. Required fields are marked *