FEFAssignment
FEFAssignment
3.Explain the concept of JSX in React. How does it differ from HTML?
4.What is meant by unidirectional data flow in React? How does it influence the way
data is passed in components?
5.Explain the lifecycle of a React component.
6. What is the Virtual DOM in React? How does it improve performance compared to
the traditional DOM?
7.What is DOM diffing?
8.What is the useReducer hook in React? How does it differ from useState, and in
which scenarios is it more useful? Provide an example demonstrating its usage.
9.What are the features of ReactJS?
10.Discuss the difference between presentational components and container
components in React. Provide examples of scenarios where each would be appropriate.
11.Develop a React app that uses useReducer for complex state management and
useCallback to handle memoized functions for optimizing performance. Describe how
these hooks improve efficiency
12.What is the difference between DOM and Virtual DOM in ReactJS?
13.What are the common performance issues in React applications? How do you
troubleshoot them?
14.Explain the lifecycle of a component in React. List and briefly describe the
different phases.
15.What is the difference between controlled and uncontrolled inputs in React?
Provide examples for each.
16.What's the difference between Props and State in React? Provide an example of
when to use each.
17.How do you implement code-splitting in React?
18.What are functional components in React? How are they different from class
components?
19.Define and explain the use of custom hooks in React. Why are they beneficial for
code reuse?
20.What is the difference between ReactJS and AngularJS?
21.What is the purpose of React hooks? Explain the use of useState and useEffect
hooks with examples.
22.What is React Context? Explain how it can be used to manage global state in a
React application.
23.Explain the concept of hooks in React. What problems do they solve?
24.Does the lazy function support named exports?
25.You are tasked with building a simple form-based application in React for
collecting user information, including name, email, and message. The form should be
user-friendly, efficient, and handle user inputs properly.
Design a functional component for the form that uses controlled inputs for the
name, email, and message fields. Use the useState hook to manage the form data.
Implement form validation using a method that ensures all fields are filled before
submission. If any field is empty, display an appropriate error message.
26.How to bind approaches or event handlers in JSX callbacks?
27.Explain in detail the concept of component lifecycle in React. How does React
manage updates, and what are the key lifecycle methods involved?
28.Explain the difference between Functional Components and Class Components in
React. Which one would you use for managing complex state and why?
29.What are React fragments? How do they help in building clean and efficient
components? Provide an example of how they are used.
30.How to use inner HTML in React?
31.Explain the useState hook in React. How is it used to manage state in functional
components? Provide an example.
32.
Discuss the usage of the useEffect hook in managing API calls in functional
components. Why is dependency management crucial in this hook?
33.Why a web directory can’t read JSX?
34.How do you style React components? Explain in detail with an example.
35.What is the arrow function in React?