57.3k views
3 votes
How do you handle passing through the component tree without having to pass props down manually at every level?

A. React Send.
B. React Pinpoint.
C. React Router.
D. React Context.

User Mr Bonjour
by
8.6k points

1 Answer

2 votes

Final answer:

React Context allows components to share data without manual prop passing.

Step-by-step explanation:

The correct answer is D. React Context. React Context allows components to share data without having to pass props down manually at every level. It provides a way for data to be passed through the component tree to nested components without explicitly passing props at each level. This can greatly simplify the process of managing shared state or providing a common data source in a React application.

User Jejuni
by
8.0k points