Unit 6: Global State, Debugging, and Deployment - Subjective Questions

INT252 — Web App Development With Reactjs • Practice Questions with Detailed Answers

20 questions

1

Explain the major challenges involved in sharing state between multiple components in a React application.

2

Define the React Context API and describe how it can be used for global state management.

3

Describe the precautions that should be taken to avoid unnecessary re-renders when using the Context API.

4

Explain the fundamentals of Redux Toolkit and state why it is preferred over writing traditional Redux logic manually.

5

Describe Redux data flow from a user interaction to the updated React user interface.

6

Explain Redux slice architecture and describe the responsibilities of a slice.

7

Distinguish between dispatching Redux actions and selecting Redux state in React components.

8

Describe how asynchronous logic can be handled in a Redux Toolkit application, including loading and error states.

9

Explain Zustand as a lightweight global state management solution and outline its main characteristics.

10

Compare the Context API, Redux Toolkit, and Zustand for managing shared state in React.

11

Differentiate between local state, global client state, and server state with suitable examples.

12

Formulate guidelines for selecting an appropriate state management solution for a React application.

13

Describe a systematic process for debugging a React application.

14

Explain how React Developer Tools and the React Profiler assist in debugging and performance analysis.

15

Explain how unnecessary rendering and common React performance problems can be identified and corrected.

16

Describe important build optimization techniques for preparing a React application for production.

17

Explain environment configuration using environment variables in React applications, including associated security precautions.

18

Describe the complete deployment workflow for a production React application.

19

Give an overview of modern deployment platforms for React applications and explain the facilities they commonly provide.

20

Discuss best practices for deploying and operating a production-ready React application.