mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 11:52:00 +00:00
8 lines
241 B
JavaScript
8 lines
241 B
JavaScript
// Make sure the shape of the default value passed to
|
|
// createContext matches the shape that the consumers expect!
|
|
// highlight-range{2-3}
|
|
export const ThemeContext = React.createContext({
|
|
theme: themes.dark,
|
|
toggleTheme: () => {},
|
|
});
|