diff --git a/src/content/blog/2024/04/25/react-19.md b/src/content/blog/2024/04/25/react-19.md index 53df19d1d1d..9f0e9318a03 100644 --- a/src/content/blog/2024/04/25/react-19.md +++ b/src/content/blog/2024/04/25/react-19.md @@ -280,14 +280,14 @@ import LightThemeContext from './LightThemeContext' import DarkThemeContext from './ThemeContext' function ThemedPage({theme, children}) { - let theme; + let currentTheme; if (theme === 'dark') { - theme = use(DarkThemeContext); + currentTheme = use(DarkThemeContext); } else { - theme = use(LightThemeContext); + currentTheme = use(LightThemeContext); } return ( - + {children} );