Component Hierarchy
↔ tree-like relationship of Component to structure data flow
aka Component-Tree
Component Composition
Composition Vs Inheritance
reactjs.org/docs/composition vs inheritance.html
Component Relationship
A direct parent-child relationship of Component with unidirectional data-flow
Adjacent/Sibling Components (on same level) do not have any Component Relationship
References
Prop Drilling
↔ to passprops
through deep Component Hierarchy 🍜👨💻React DevTools
↔ Browser Extension to inspect React App (dev build only!) to view Component Hierarchy,props
& stateSuspense Boundary
↔ Component Hierarchy wrap by<Suspense\>
to suspend renderchildren
withfallback
until readySubscribe
↔ to accessContext
from closest ParentProvider
in Component HierarchyPortal
↔ReactDOM API
Escape Hatch to renderchildren
outside Component Hierarchy of Parent ComponentUnidirectional binding
↔ React restricts data flow to one-way down Component Hierarchy. optional Escape Hatches exist