Javascript – How to implement 'useContext' in Next JS with .tsx files?
I am trying to implement dual theme (dark & light) in Next JS using MUI using use context method. It gives me this error: ⨯ srcapppage.tsx (6:50) @ useThemeContext ⨯ TypeError: (0 , _providers_theme_context_provider__WEBPACK_IMPORTED_MODULE_1__.useThemeContext) is not a function at Home…