Whether wherever nesting more than 1 item to use react context?

Is it possible to use a context whenever the nesting is greater than 1? Because to put the props even when nesting 2-3 item seems irrational. How often in reality do?
April 19th 20 at 12:15
1 answer
April 19th 20 at 12:17
In reality, often shoved redux.

The use of the Context API, according to the architect React, often unnecessarily. https://twitter.com/sebmarkbage/status/12198364319...
https://twitter.com/sebmarkbage/status/12198289982...

Ideally, there should be a song where you can apply render props.
That is, each page is loaded via lazy, and contains the canvas JSX, which can render using props to communicate, and the page component will store most of the state.

Overall, nobody forbids to use Context for nesting >=2, but the local state copes with the task, if the components are broken normally.
You can use the render function. You can also move components inside the component.
https://twitter.com/dan_abramov/status/10218504996... - Julie.Jakubowski commented on April 19th 20 at 12:20

Find more questions by tags React