useContext()
↔ Stateful Hook to subscribe to Context
persist state in app-wide store in Parent Component
Provider
↔ Wrapper FC to provide Context
value
to all Subscribing children
createContext()
↔ Context API
fn to create Context
Object
Consumer
↔ redundant WET way to access Context
- use useContext()
instead
Subscribe
↔ to access Context
from closest Parent Provider
in Component Hierarchy
value
↔ Provider
prop
to share Context
data to all Subscribers
decorators
↔ to add Wrapper for Stories, for inline CSS || Context
Provider
storybook
↔ popular Frontend Dev tool to isolate UI to doc/showcase/test, detangle Business Logic/state/Context