Context lets components pass information deep down without explicitly passing props.
Created from createContext
import { createContext } from 'react';const ThemeContext = createContext('light');
Optional
Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.
Legacy React Docs
Generated using TypeDoc
Context lets components pass information deep down without explicitly passing props.
Created from createContext
See
Example