props ↔ frozen Object of properties; passed as dynamic input from Parent Component to children
aka prop
props are immutable within Component via Object.freeze()
props should be mutated in Parent Component instead
called as this.props in CC
resemble HTML Attribute
this.props
frozen object for accessing properties inside a Component
props is a single object used to hold variable number of optional arguments with no need for exact order
children
special placeholder props to nest JSX
References
FC↔ function to return UI via JSX. Passpropsfor dynamic input. add state via HookProp Drilling↔ to passpropsthrough deep Component Hierarchy 🍜👨💻Pure Component↔ stateless Component that always renders same based on samepropsinput.Render Props↔ Providing function aspropsto render JSXuseMemo()↔ Memoizing Hook to Memoize entire Component, some JSX orprops, based on Deps Array changeReact DevTools↔ Browser Extension to inspect React App (dev build only!) to view Component Hierarchy,props& statefallback↔propto set JSX placeholder for Suspense Boundary when Lazy Loadingstate↔propto pass info onto child route to config redirect logic, access vialocation.statestate↔propto pass config & redirect logic, to access from Child vialocation.statevalue↔Providerpropto shareContextdata to all SubscribersusePrevious()↔ Custom Hook to get previous value ofpropsor stateunoptimized↔propto set<Image\>to serve unoptimized Image Element (for compat withstorybook)key↔ specialpropasstringUID for VDOM to track/Diff list elements