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. Passprops
for dynamic input. add state via HookProp Drilling
↔ to passprops
through deep Component Hierarchy 🍜👨💻Pure Component
↔ stateless Component that always renders same based on sameprops
input.Render Props
↔ Providing function asprops
to 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
↔prop
to set JSX placeholder for Suspense Boundary when Lazy Loadingstate
↔prop
to pass info onto child route to config redirect logic, access vialocation.state
state
↔prop
to pass config & redirect logic, to access from Child vialocation.state
value
↔Provider
prop
to shareContext
data to all SubscribersusePrevious()
↔ Custom Hook to get previous value ofprops
or stateunoptimized
↔prop
to set<Image\>
to serve unoptimized Image Element (for compat withstorybook
)key
↔ specialprop
asstring
UID for VDOM to track/Diff list elements