Patterns
Context fallback
Static value used when a reader has no matching ancestor provider; not a replacement for explicitly provided undefined.
Formal Syntax & Structure
react syntaxreact
createContext(defaultValue)Working Example
Example Snippetreact
const UnitContext = createContext("pages");